Project

General

Profile

Actions

Submit #3146

closed

Virtio Memory Balloon

Added by ddegroot about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Driver
Target version:
Start date:
10/02/2018
Due date:
% Done:

90%

Estimated time:

Description

Ported the FreeBSD Virtio Memory Balloon Driver. Looking like some review/comment/testing.


Files

Actions #1

Updated by ddegroot about 3 years ago

  • File 0003-Implemented-suggestions-made-by-ivadasz.patch added
Actions #2

Updated by ddegroot about 3 years ago

  • File 0004-Added-virtio_teardown_intr-handling-to-vtballoon_det.patch added
Actions #3

Updated by ddegroot about 3 years ago

  • File deleted (0002-Adapt-to-DragonFlyBSD.patch)
Actions #4

Updated by ddegroot about 3 years ago

  • File deleted (0003-Implemented-suggestions-made-by-ivadasz.patch)
Actions #5

Updated by ddegroot about 3 years ago

  • File deleted (0004-Added-virtio_teardown_intr-handling-to-vtballoon_det.patch)
Actions #6

Updated by ddegroot about 3 years ago

  • File 0002-Adapt-to-DragonFlyBSD.patch added
Actions #7

Updated by ddegroot about 3 years ago

  • File deleted (0002-Adapt-to-DragonFlyBSD.patch)
Actions #8

Updated by ddegroot about 3 years ago

  • File 0002-Adapt-to-DragonFlyBSD.patch added
Actions #9

Updated by ddegroot about 3 years ago

  • File deleted (0002-Adapt-to-DragonFlyBSD.patch)
Actions #10

Updated by ddegroot about 3 years ago

  • File 0002-Adapt-to-DragonFlyBSD.patch added
Actions #11

Updated by ddegroot about 3 years ago

  • File 0003-Do-not-use-VM_ALLOC_INTERRUPT.-Add-better-inflate-de.patch added
Actions #12

Updated by ddegroot about 3 years ago

  • File 0004-Adding-virtio-balloon-statistics.patch added
Actions #13

Updated by ddegroot about 3 years ago

  • File deleted (0004-Adding-virtio-balloon-statistics.patch)
Actions #14

Updated by ddegroot about 3 years ago

  • File 0004-Adding-virtio-balloon-statistics.patch added
Actions #15

Updated by ddegroot about 3 years ago

  • File 0005-Fix-KASSERT-issue-Reported-by-Tuxillo.patch added
Actions #16

Updated by ddegroot about 3 years ago

  • File 0006-Add-extra-debug-flag.patch added
  • File 0007-Don-t-collect-stats-when-initialially-loaded-Reporte.patch added
Actions #17

Updated by ddegroot about 3 years ago

When testing with qemu:
host-side:
- add "-balloon virtio" to the qemu command-line, to provide a PCI Balloon interface to the guest.
- make sure you have access to the monitor interface (qemu [...] -qmp tcp:localhost:4444,server,nowait)

guest-side:
Load driver
- kldload virtio_balloon
Increase debug level
- sysctl dev.vtballoon.0.debug_level=0x7

Inflating the balloon to 96 Mb on my 4096Mb Guest (4096->4000) (ie:reverse)
host side (monitor interface):

telnet localhost 4444 (to connect to the monitor)

{"QMP": {"version": {"qemu": {"micro": 0, "minor": 6, "major": 1}, "package": ""}, "capabilities": []}}

{ "execute": "qmp_capabilities" } { "execute": "balloon","arguments":{"value":"4194304000"} } # 4000 * 1024 * 1024 { "execute": "query-balloon" } { "execute": "qom-list", "arguments": { "path": "/machine/peripheral-anon/" }} # to get the balloon interface device name { "execute": "qom-get", "arguments": { "path": "/machine/peripheral-anon/device0", "property": "guest-stats" } } # Collect quest stats { "execute": "qom-set", "arguments": { "path": "/machine/peripheral-anon/device0", "property": "guest-stats-polling-interval", "value": 5}} # stat collection every 5 seconds

or host side (using virsh):

qemu-monitor-command --domain xxxxx --hmp 'balloon 4000'
qemu-monitor-command --domain xxxxx --hmp 'info balloon'
qemu-monitor-command --domain xxxxx '{ "execute": "qom-get", "arguments": { "path": "/machine/peripheral/balloon0", "property": "guest-stats" } }'

Actions #18

Updated by ddegroot about 3 years ago

  • File 0008-Fix-comments-review-schwildner.patch added
Actions #19

Updated by ddegroot about 3 years ago

  • File deleted (0008-Fix-comments-review-schwildner.patch)
Actions #20

Updated by ddegroot about 3 years ago

  • File 0008-Fix-comments-review-swildner.patch added
Actions #21

Updated by ddegroot about 3 years ago

  • File deleted (0001-Initial-checking-fbsd-virtio_balloon.patch)
Actions #22

Updated by ddegroot about 3 years ago

  • File deleted (0002-Adapt-to-DragonFlyBSD.patch)
Actions #23

Updated by ddegroot about 3 years ago

  • File deleted (0003-Do-not-use-VM_ALLOC_INTERRUPT.-Add-better-inflate-de.patch)
Actions #24

Updated by ddegroot about 3 years ago

  • File deleted (0004-Adding-virtio-balloon-statistics.patch)
Actions #25

Updated by ddegroot about 3 years ago

  • File deleted (0005-Fix-KASSERT-issue-Reported-by-Tuxillo.patch)
Actions #26

Updated by ddegroot about 3 years ago

  • File deleted (0006-Add-extra-debug-flag.patch)
Actions #27

Updated by ddegroot about 3 years ago

  • File deleted (0007-Don-t-collect-stats-when-initialially-loaded-Reporte.patch)
Actions #28

Updated by ddegroot about 3 years ago

  • File deleted (0008-Fix-comments-review-swildner.patch)
Actions #29

Updated by ddegroot about 3 years ago

  • Subject changed from [WIP/RFC] Virtio Memory Balloon to Virtio Memory Balloon
Actions #30

Updated by ddegroot about 3 years ago

  • File 0001-Initial-checking-fbsd-virtio_balloon.patch added
Actions #31

Updated by ddegroot about 3 years ago

  • File deleted (0001-Initial-checking-fbsd-virtio_balloon.patch)
Actions #33

Updated by ddegroot about 3 years ago

  • Status changed from New to Resolved

[gitweb-dfbsd] -
- LINT64: Add comments to the virtio devices. - http://tinyurl.com/y7crcwzf - Sascha Wildner <saw@online.de> - Virtio_Balloon implementation for DragonFly - http://tinyurl.com/yd6t849m - Diederik de Groot <ddegroot@talon.nl>
- sys/conf/files: Move vmx a bit up. - http://tinyurl.com/y8xder5o - Sascha Wildner <saw@online.de>

Actions

Also available in: Atom PDF