Print this page
Revert "OS-8005 bhyve memory pressure needs to target ARC better (#354)"
This reverts commit a6033573eedd94118d2b9e65f45deca0bf4b42f7.

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libvmmapi/common/vmmapi.h
          +++ new/usr/src/lib/libvmmapi/common/vmmapi.h
↓ open down ↓ 30 lines elided ↑ open up ↑
  31   31   * This file and its contents are supplied under the terms of the
  32   32   * Common Development and Distribution License ("CDDL"), version 1.0.
  33   33   * You may only use this file in accordance with the terms of version
  34   34   * 1.0 of the CDDL.
  35   35   *
  36   36   * A full copy of the text of the CDDL should have accompanied this
  37   37   * source.  A copy of the CDDL is also available via the Internet at
  38   38   * http://www.illumos.org/license/CDDL.
  39   39   *
  40   40   * Copyright 2015 Pluribus Networks Inc.
  41      - * Copyright 2020 Joyent, Inc.
       41 + * Copyright 2019 Joyent, Inc.
  42   42   * Copyright 2020 Oxide Computer Company
  43   43   */
  44   44  
  45   45  #ifndef _VMMAPI_H_
  46   46  #define _VMMAPI_H_
  47   47  
  48   48  #include <sys/param.h>
  49   49  #include <sys/cpuset.h>
  50   50  #include <x86/segments.h>
  51   51  
↓ open down ↓ 257 lines elided ↑ open up ↑
 309  309              uint16_t *threads, uint16_t *maxcpus);
 310  310  
 311  311  #ifndef __FreeBSD__
 312  312  /* illumos-specific APIs */
 313  313  int     vm_pmtmr_set_location(struct vmctx *ctx, uint16_t ioport);
 314  314  int     vm_wrlock_cycle(struct vmctx *ctx);
 315  315  int vm_get_run_state(struct vmctx *ctx, int vcpu, enum vcpu_run_state *state,
 316  316      uint8_t *sipi_vector);
 317  317  int vm_set_run_state(struct vmctx *ctx, int vcpu, enum vcpu_run_state state,
 318  318      uint8_t sipi_vector);
 319      -int     vm_arc_resv(struct vmctx *ctx, size_t);
 320  319  #endif  /* __FreeBSD__ */
 321  320  
 322  321  #ifdef  __FreeBSD__
 323  322  /*
 324  323   * FreeBSD specific APIs
 325  324   */
 326  325  int     vm_setup_freebsd_registers(struct vmctx *ctx, int vcpu,
 327  326                                  uint64_t rip, uint64_t cr3, uint64_t gdtbase,
 328  327                                  uint64_t rsp);
 329  328  int     vm_setup_freebsd_registers_i386(struct vmctx *vmctx, int vcpu,
 330  329                                          uint32_t eip, uint32_t gdtbase,
 331  330                                          uint32_t esp);
 332  331  void    vm_setup_freebsd_gdt(uint64_t *gdtr);
 333  332  #endif
 334  333  #endif  /* _VMMAPI_H_ */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX