Virtio_Balloon implementation for DragonFly
authorDiederik de Groot <ddegroot@talon.nl>
Mon, 1 Oct 2018 23:00:05 +0000 (01:00 +0200)
committerSascha Wildner <saw@online.de>
Fri, 26 Oct 2018 13:37:32 +0000 (15:37 +0200)
commit95fbc42e816925ffb64f54aff73b17ea73ba1a70
tree18a300ee67246378fb34395a31b016433c76c46b
parentfa771edde076c537099252310d3f5a1414859321
Virtio_Balloon implementation for DragonFly

- Initial check-in of fbsd virtio_balloon (freebsd/freebsd@1537078)
- Update virtio_balloon man page
- Fix vtballoon_alloc_intrs to deal nicely with number of provided interrupts.
- Use a backoff scheme when allocating vm_pages:
  - VM_ALLOC_NORMAL for normal (low memory presure) situation;
  - VM_ALLOC_SYSTEM + increased sleep timeout, for high memory presure circumstances.
  The latter will allow the system to swap other pages out if necessary.
- Implemented suggestions made by ivadasz
  - Added virtio_teardown_intr handling to vtballoon_detach
  - Added config_change_intr handling
  - Fixed virtio_setup_intr
- Add debug_level sysctl for tracing.
- Add collection of guest memory/pagefault statistics
- Completed/Updated header definitions
- Don't use VM_ALLOC_INTERRUPT. Add better inflate/deflate debug output to thread_sleep function
- Don't collect stats when initialially loaded (Reported by tuxillo).
share/man/man4/Makefile
share/man/man4/virtio.4
share/man/man4/virtio_balloon.4 [new file with mode: 0644]
sys/conf/files
sys/config/LINT64
sys/config/X86_64_GENERIC
sys/dev/virtual/virtio/Makefile
sys/dev/virtual/virtio/balloon/Makefile [copied from sys/dev/virtual/virtio/Makefile with 84% similarity]
sys/dev/virtual/virtio/balloon/virtio_balloon.c [new file with mode: 0644]
sys/dev/virtual/virtio/balloon/virtio_balloon.h [new file with mode: 0644]