Skip to content

accel/mshv: add support for PIC interrupt injection

Magnus Kulke qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/i386/mshv: fix vCPU run result contracttarget/i386/mshv/mshv-cpu.c+17 -111 reply
2/4accel/mshv: stop VM on vCPU execution errorsaccel/mshv/mshv-all.c+4 -31 reply
3/4target/i386/mshv: deliver legacy PIC interruptshw/i386/x86-cpu.c include/hw/hyperv/hvgdk_mini.h include/system/mshv_int.h +4 more+200 -171 reply
4/4accel/mshv: do not coalesce vCPU kicksaccel/mshv/mshv-all.c+19 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchMohamed Mediouni
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] accel/mshv: add support for PIC interrupt injection

This change adds support for injecting legacy PIC interrupts for mshv-accelerated x86 guests. This is relevant e.g. for guest that rely on a PIT in early boot (e.g. ISOLINUX).

The series carries two provisional patches for
feature to work:

- target/i386/mshv: fix vCPU run result contract

this has been posted earlier as a standalone patch, but it is required here, so we might be able to drop it in an upcoming revision if the standalone fix is merged earlier.

- accel/mshv: do not coalesce vCPU kicks

this is a workaround for a race condition that currently exists in the upstream mshv driver, which can lead to interruption requests being lost. A new CANCEL_VP ioctl is being tested. It will address this issue, so we can drop this workaround once it the new ioctl is available upstream.

Magnus Kulke (4):
target/i386/mshv: fix vCPU run result contract
accel/mshv: stop VM on vCPU execution errors
target/i386/mshv: deliver legacy PIC interrupts
accel/mshv: do not coalesce vCPU kicks

 accel/mshv/mshv-all.c          |  26 ++++-
 hw/i386/x86-cpu.c              |   9 +-
 include/hw/hyperv/hvgdk_mini.h |  42 +++++++-
 include/system/mshv_int.h      |   1 +
 meson.build                    |   1 +
 target/i386/mshv/mshv-cpu.c    | 183 +++++++++++++++++++++++++++++----
 target/i386/mshv/trace-events  |   7 ++
 target/i386/mshv/trace.h       |   2 +
 8 files changed, 240 insertions(+), 31 deletions(-)
 create mode 100644 target/i386/mshv/trace-events
 create mode 100644 target/i386/mshv/trace.h
Signature · 1 line
2.34.1