-
Describe the bug pci device can't hotplug for aarch64, and can't hotplug memory To Reproduce 1、start vm 2、 look up disk list of vm [root@cloud-hypervisor ~]# lsblk 3、 hotplug disk 4、 look up disk list of vm Version ./cloud-hypervisor --version Output of Did you build from source, if so build command line (e.g. features): build command line: cargo build --release VM configuration ./cloud-hypervisor --kernel ./Image --console off --serial tty --disk path=/home/luzhipeng/openEuler-23.09-aarch64.raw --cmdline "console=ttyAMA0 root=/dev/vda2 rw" --cpus boot=4,max=16 --memory size=1024M,hotplug_size=8192M --net tap=,mac=,ip=,mask= --api-socket /tmp/cloud.sock --log-file /tmp/cloud-hypervisor.log -vv --seccomp false What command line did you run (or JSON config data): Guest OS version details: Guest os config Host OS version details: [root@wlcjs172-master-03 cloud-hypervisor]# uname -ar Logs Output of cloud-hypervisor: 81.011850s: INFO:vmm/src/lib.rs:1952 -- API request event: VmAddDisk(DiskConfig { path: Some("cloud.img"), readonly: false, direct: false, iommu: false, num_queues: 1, queue_size: 128, vhost_user: false, vhost_socket: None, rate_limiter_config: None, id: None, disable_io_uring: false, disable_aio: false, pci_segment: 0, serial: None }, Sender { .. }) cloud-hypervisor: 81.012101s: INFO:vmm/src/device_manager.rs:2212 -- Creating virtio-block device: DiskConfig { path: Some("cloud.img"), readonly: false, direct: false, iommu: false, num_queues: 1, queue_size: 128, vhost_user: false, vhost_socket: None, rate_limiter_config: None, id: Some("_disk2"), disable_io_uring: false, disable_aio: false, pci_segment: 0, serial: None } cloud-hypervisor: 81.012381s: INFO:vmm/src/device_manager.rs:2302 -- Using asynchronous RAW disk file (io_uring) cloud-hypervisor: 81.012425s: INFO:virtio-devices/src/block.rs:584 -- Disk topology: DiskTopology { logical_block_size: 512, physical_block_size: 512, minimum_io_size: 512, optimal_io_size: 0 } Linux kernel output: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
See the notes in https://github.com/cloud-hypervisor/cloud-hypervisor/blob/main/docs/hotplug.md#pci-device-hot-plug, the Arm PCI device hotplug is only available if you use ACPI, however from your command line attached above, it seems that this is not the case. |
Beta Was this translation helpful? Give feedback.
See the notes in https://github.com/cloud-hypervisor/cloud-hypervisor/blob/main/docs/hotplug.md#pci-device-hot-plug, the Arm PCI device hotplug is only available if you use ACPI, however from your command line attached above, it seems that this is not the case.