git: Virtio_Balloon implementation for DragonFly

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Oct 26 06:38:29 PDT 2018


commit 95fbc42e816925ffb64f54aff73b17ea73ba1a70
Author: Diederik de Groot <ddegroot at talon.nl>
Date:   Tue Oct 2 01:00:05 2018 +0200

    Virtio_Balloon implementation for DragonFly
    
    - Initial check-in of fbsd virtio_balloon (freebsd/freebsd at 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).

Summary of changes:
 share/man/man4/Makefile                            |   1 +
 share/man/man4/virtio.4                            |  17 +-
 .../man/man4/{virtio_random.4 => virtio_balloon.4} |  50 +-
 sys/conf/files                                     |   1 +
 sys/config/LINT64                                  |   1 +
 sys/config/X86_64_GENERIC                          |   1 +
 sys/dev/virtual/virtio/Makefile                    |   2 +-
 .../virtual/virtio/{random => balloon}/Makefile    |   8 +-
 sys/dev/virtual/virtio/balloon/virtio_balloon.c    | 916 +++++++++++++++++++++
 sys/dev/virtual/virtio/balloon/virtio_balloon.h    | 126 +++
 10 files changed, 1091 insertions(+), 32 deletions(-)
 copy share/man/man4/{virtio_random.4 => virtio_balloon.4} (65%)
 copy sys/dev/virtual/virtio/{random => balloon}/Makefile (89%)
 create mode 100644 sys/dev/virtual/virtio/balloon/virtio_balloon.c
 create mode 100644 sys/dev/virtual/virtio/balloon/virtio_balloon.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/95fbc42e816925ffb64f54aff73b17ea73ba1a70


-- 
DragonFly BSD source repository



More information about the Commits mailing list