Project

General

Profile

Submit #3146

[WIP/RFC] Virtio Memory Balloon

Added by ddegroot 15 days ago. Updated about 3 hours ago.

Status:
New
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.

History

#1 Updated by ddegroot 15 days ago

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

#2 Updated by ddegroot 15 days ago

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

#3 Updated by ddegroot 15 days ago

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

#4 Updated by ddegroot 15 days ago

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

#5 Updated by ddegroot 15 days ago

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

#6 Updated by ddegroot 15 days ago

  • File 0002-Adapt-to-DragonFlyBSD.patch added

#7 Updated by ddegroot 15 days ago

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

#8 Updated by ddegroot 15 days ago

  • File 0002-Adapt-to-DragonFlyBSD.patch added

#9 Updated by ddegroot 15 days ago

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

#12 Updated by ddegroot 13 days ago

  • File 0004-Adding-virtio-balloon-statistics.patch added

#13 Updated by ddegroot 13 days ago

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

#17 Updated by ddegroot 3 days ago

When testing with qemu:
host-side:
- add "-balloon virtio" to the qemu guest command-line, to provide a PCI Balloon interface to the guest.
- make sure you have access to the monitor interface (either through virsh, serial, pipe etc) (see: "-monitor" switch)

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):
> balloon 4000
> info balloon
> qom-get /machine/peripheral/balloon0 guest-stats # Collect quest stats

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" } }'

#18 Updated by ddegroot 2 days ago

  • File 0008-Fix-comments-review-schwildner.patch added

#19 Updated by ddegroot about 3 hours ago

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

Also available in: Atom PDF