mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: make PCI BDF configurable for balloon
Add shared PCI config to virtio-balloon. On-behalf-of: SAP philipp.schuster@sap.com Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
committed by
Rob Bradford
parent
08bd7727ff
commit
5aa0587f2a
@@ -6092,6 +6092,7 @@ mod common_parallel {
|
||||
.args(["--kernel", kernel_path.to_str().unwrap()])
|
||||
.args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE])
|
||||
.args(["--console", "tty,pci_device_id=7"])
|
||||
.args(["--balloon", "size=0,pci_device_id=8"])
|
||||
.default_net()
|
||||
.default_disks()
|
||||
.capture_output();
|
||||
@@ -6113,6 +6114,17 @@ mod common_parallel {
|
||||
.is_ok()
|
||||
}));
|
||||
|
||||
// Make sure an explicit BDF for virtio-balloon is set.
|
||||
assert!(wait_until(Duration::from_secs(10), || {
|
||||
ssh_command_ip_with_auth(
|
||||
"lspci -n | grep \"00:08.0\"",
|
||||
&default_guest_auth(),
|
||||
&guest.network.guest_ip0,
|
||||
Some(Duration::from_secs(1)),
|
||||
)
|
||||
.is_ok()
|
||||
}));
|
||||
|
||||
let (cmd_success, cmd_stdout, _) = remote_command_w_output(
|
||||
&api_socket,
|
||||
"add-net",
|
||||
|
||||
Reference in New Issue
Block a user