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.c
          +++ new/usr/src/lib/libvmmapi/common/vmmapi.c
↓ open down ↓ 1934 lines elided ↑ open up ↑
1935 1935          data.vcpuid = vcpu;
1936 1936          data.state = state;
1937 1937          data.sipi_vector = sipi_vector;
1938 1938          if (ioctl(ctx->fd, VM_SET_RUN_STATE, &data) != 0) {
1939 1939                  return (errno);
1940 1940          }
1941 1941  
1942 1942          return (0);
1943 1943  }
1944 1944  
1945      -int
1946      -vm_arc_resv(struct vmctx *ctx, size_t len)
1947      -{
1948      -        if (ioctl(ctx->fd, VM_ARC_RESV, (uint64_t)len) != 0) {
1949      -                return (errno);
1950      -        }
1951      -        return (0);
1952      -}
1953 1945  #endif /* __FreeBSD__ */
1954 1946  
1955 1947  #ifdef __FreeBSD__
1956 1948  const cap_ioctl_t *
1957 1949  vm_get_ioctls(size_t *len)
1958 1950  {
1959 1951          cap_ioctl_t *cmds;
1960 1952          /* keep in sync with machine/vmm_dev.h */
1961 1953          static const cap_ioctl_t vm_ioctl_cmds[] = { VM_RUN, VM_SUSPEND, VM_REINIT,
1962 1954              VM_ALLOC_MEMSEG, VM_GET_MEMSEG, VM_MMAP_MEMSEG, VM_MMAP_MEMSEG,
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX