Project

General

Profile

Submit #3146

Virtio Memory Balloon

Added by ddegroot 2 months ago. Updated about 2 months 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.

History

#1 Updated by ddegroot 2 months ago

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

#2 Updated by ddegroot 2 months ago

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

#3 Updated by ddegroot 2 months ago

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

#4 Updated by ddegroot 2 months ago

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

#5 Updated by ddegroot 2 months ago

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

#6 Updated by ddegroot 2 months ago

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

#7 Updated by ddegroot 2 months ago

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

#8 Updated by ddegroot 2 months ago

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

#9 Updated by ddegroot 2 months ago

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

#10 Updated by ddegroot 2 months ago

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

#11 Updated by ddegroot 2 months ago

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

#12 Updated by ddegroot 2 months ago

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

#13 Updated by ddegroot 2 months ago

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

#14 Updated by ddegroot 2 months ago

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

#15 Updated by ddegroot 2 months ago

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

#16 Updated by ddegroot about 2 months ago

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

#17 Updated by ddegroot about 2 months 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/device[0]", "property": "guest-stats" } } # Collect quest stats
> { "execute": "qom-set", "arguments": { "path": "/machine/peripheral-anon/device[0]", "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" } }'

#18 Updated by ddegroot about 2 months ago

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

#19 Updated by ddegroot about 2 months ago

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

#20 Updated by ddegroot about 2 months ago

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

#21 Updated by ddegroot about 2 months ago

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

#22 Updated by ddegroot about 2 months ago

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

#23 Updated by ddegroot about 2 months ago

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

#24 Updated by ddegroot about 2 months ago

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

#25 Updated by ddegroot about 2 months ago

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

#26 Updated by ddegroot about 2 months ago

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

#27 Updated by ddegroot about 2 months ago

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

#28 Updated by ddegroot about 2 months ago

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

#29 Updated by ddegroot about 2 months ago

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

#30 Updated by ddegroot about 2 months ago

  • File 0001-Initial-checking-fbsd-virtio_balloon.patch added

#31 Updated by ddegroot about 2 months ago

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

#33 Updated by ddegroot about 2 months 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 <>
- sys/conf/files: Move vmx a bit up. - http://tinyurl.com/y8xder5o - Sascha Wildner <saw@online.de>

Also available in: Atom PDF