qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* More than 255 vcpus Windows VM setup without viommu ?
@ 2024-07-02  5:17 Sandesh Patel
  2024-07-02  9:04 ` David Woodhouse
  2024-09-28 14:59 ` David Woodhouse
  0 siblings, 2 replies; 17+ messages in thread
From: Sandesh Patel @ 2024-07-02  5:17 UTC (permalink / raw)
  To: qemu-devel@nongnu.org
  Cc: dwmw2@infradead.org, Rob Scheepens, Prerna Saxena,
	qemu-devel@nongnu.org

Hi All,
Is it possible to setup a large Windows VM (say 512 vcpus) without adding viommu (EIM=on, IR=on)?
When I try to power such VM, the qemu process crashes with error-
```
qemu-kvm: ../accel/kvm/kvm-all.c:1837: kvm_irqchip_commit_routes: Assertion `ret == 0’ failed

```
Stack trace-

```
#1  0x00007f484bc21ea5 abort (libc.so.6)
#2  0x00007f484bc21d79 __assert_fail_base.cold.0 (libc.so.6)
#3  0x00007f484bc47426 __assert_fail (libc.so.6)
#4  0x000055b7215634d3 kvm_irqchip_commit_routes (qemu-kvm)
#5  0x000055b7213bfc7e kvm_virtio_pci_vector_use_one (qemu-kvm)
#6  0x000055b7213c02cf virtio_pci_set_guest_notifiers (qemu-kvm)
#7  0x000055b7214dd848 vhost_scsi_common_start (qemu-kvm)
#8  0x000055b72139b936 vhost_user_scsi_start (qemu-kvm)
#9  0x000055b72139ba64 vhost_user_scsi_set_status (qemu-kvm)
#10 0x000055b7214f865a virtio_set_status (qemu-kvm)
#11 0x000055b7213bdc3f virtio_pci_common_write (qemu-kvm)
#12 0x000055b721514e68 memory_region_write_accessor (qemu-kvm)
#13 0x000055b72151489e access_with_adjusted_size (qemu-kvm)
#14 0x000055b721514b89 memory_region_dispatch_write (qemu-kvm)
#15 0x000055b72151e3fc flatview_write_continue (qemu-kvm)
#16 0x000055b72151e553 flatview_write (qemu-kvm)
#17 0x000055b72151ee76 address_space_write (qemu-kvm)
#18 0x000055b721565526 kvm_cpu_exec (qemu-kvm)
#19 0x000055b72156634d kvm_vcpu_thread_fn (qemu-kvm)
#20 0x000055b721750224 qemu_thread_start (qemu-kvm)
#21 0x00007f484c0081ca start_thread (libpthread.so.0)
#22 0x00007f484bc39e73 
```

The error is due to invalid MSIX routing entry passed to KVM.

The VM boots fine if we attach a vIOMMU but adding a vIOMMU can potentially result in IO performance loss in guest.
I was interested to know if someone could boot a large Windows VM by some other means like kvm-msi-ext-dest-id.

Overheads of viommu have been shown for example in - https://static.sched.com/hosted_files/kvmforum2021/da/vIOMMU%20KVM%20Forum%202021%20-%20v4.pdf

Thanks and regards,
Sandesh

^ permalink raw reply	[flat|nested] 17+ messages in thread
* More than 255 vcpus Windows VM setup without viommu ?
@ 2024-07-02  7:20 Sandesh Patel
  0 siblings, 0 replies; 17+ messages in thread
From: Sandesh Patel @ 2024-07-02  7:20 UTC (permalink / raw)
  To: qemu-devel@nongnu.org
  Cc: dwmw2@infradead.org, Rob Scheepens, Prerna Saxena,
	qemu-devel@nongnu.org

Hi All,
Is it possible to setup a large Windows VM (say 512 vcpus) without adding viommu (EIM=on, IR=on)?
When I try to power such VM, the qemu process crashes with error-
```
qemu-kvm: ../accel/kvm/kvm-all.c:1837: kvm_irqchip_commit_routes: Assertion `ret == 0’ failed

```
Stack trace-

```
#1  0x00007f484bc21ea5 abort (libc.so.6)
#2  0x00007f484bc21d79 __assert_fail_base.cold.0 (libc.so.6)
#3  0x00007f484bc47426 __assert_fail (libc.so.6)
#4  0x000055b7215634d3 kvm_irqchip_commit_routes (qemu-kvm)
#5  0x000055b7213bfc7e kvm_virtio_pci_vector_use_one (qemu-kvm)
#6  0x000055b7213c02cf virtio_pci_set_guest_notifiers (qemu-kvm)
#7  0x000055b7214dd848 vhost_scsi_common_start (qemu-kvm)
#8  0x000055b72139b936 vhost_user_scsi_start (qemu-kvm)
#9  0x000055b72139ba64 vhost_user_scsi_set_status (qemu-kvm)
#10 0x000055b7214f865a virtio_set_status (qemu-kvm)
#11 0x000055b7213bdc3f virtio_pci_common_write (qemu-kvm)
#12 0x000055b721514e68 memory_region_write_accessor (qemu-kvm)
#13 0x000055b72151489e access_with_adjusted_size (qemu-kvm)
#14 0x000055b721514b89 memory_region_dispatch_write (qemu-kvm)
#15 0x000055b72151e3fc flatview_write_continue (qemu-kvm)
#16 0x000055b72151e553 flatview_write (qemu-kvm)
#17 0x000055b72151ee76 address_space_write (qemu-kvm)
#18 0x000055b721565526 kvm_cpu_exec (qemu-kvm)
#19 0x000055b72156634d kvm_vcpu_thread_fn (qemu-kvm)
#20 0x000055b721750224 qemu_thread_start (qemu-kvm)
#21 0x00007f484c0081ca start_thread (libpthread.so.0)
#22 0x00007f484bc39e73 
```

The error is due to invalid MSIX routing entry passed to KVM.

The VM boots fine if we attach a vIOMMU but adding a vIOMMU can potentially result in IO performance loss in guest.
I was interested to know if someone could boot a large Windows VM by some other means like kvm-msi-ext-dest-id.

Overheads of viommu have been shown for example in - https://static.sched.com/hosted_files/kvmforum2021/da/vIOMMU%20KVM%20Forum%202021%20-%20v4.pdf

Thanks and regards,
Sandesh

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-10-02 15:31 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-02  5:17 More than 255 vcpus Windows VM setup without viommu ? Sandesh Patel
2024-07-02  9:04 ` David Woodhouse
2024-07-03 16:01   ` Sandesh Patel
2024-07-08  9:13     ` David Woodhouse
2024-07-11  7:26       ` David Woodhouse
2024-07-11 11:23         ` David Woodhouse
2024-07-11 11:52           ` Sandesh Patel
2024-07-16  5:13             ` Sandesh Patel
2024-07-24  9:22               ` David Woodhouse
2024-08-01 10:28         ` Sandesh Patel
2024-09-28 14:59 ` David Woodhouse
2024-09-30 15:50   ` David Woodhouse
2024-10-02 11:33     ` Igor Mammedov
2024-10-02 15:30       ` David Woodhouse
2024-10-01 13:33   ` Daniel P. Berrangé
2024-10-01 16:37     ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2024-07-02  7:20 Sandesh Patel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).