Skip to content

i386/kvm/hyper-v: refactor and implement 'hv-stimer-direct' and 'hv-passthrough' enlightenments

Vitaly Kuznetsov qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 5 repliesIn review
  2. v1 RFC8 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- Existing Hyper-V properties are converted from BOOL to BIT64, this allows us to express dependencies between them in a more natural way as well as simplifies search in kvm_hyperv_properties [Roman Kagan] (hope I got the idea right, but in any case this should be an improvement). PATCH1 added to the series.
- 'hv-all' renamed to 'hv-passthrough' [Roman Kagan]
- minor changes mostly related to support the addition of PATCH1.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9i386/kvm: convert hyperv enlightenments properties from bools to bitshw/i386/pc.c target/i386/cpu.c target/i386/cpu.h +3 more+91 -801 reply
2/9i386/kvm: add support for KVM_GET_SUPPORTED_HV_CPUIDtarget/i386/kvm.c+356 -1184 replies
3/9i386/kvm: move Hyper-V CPUID filling to hyperv_handle_properties()target/i386/kvm.c+90 -730 replies
4/9i386/kvm: document existing Hyper-V enlightenmentsdocs/hyperv.txt+181 -00 replies
5/9i386/kvm: implement 'hv-passthrough' modedocs/hyperv.txt target/i386/cpu.c target/i386/cpu.h +1 more+87 -140 replies
6/9i386/kvm: hv-stimer requires hv-time and hv-synictarget/i386/kvm.c+19 -40 replies
7/9i386/kvm: hv-tlbflush/ipi require hv-vpindextarget/i386/kvm.c+4 -20 replies
8/9i386/kvm: hv-evmcs requires hv-vapictarget/i386/kvm.c+2 -10 replies
9/9i386/kvm: add support for Direct Mode for Hyper-V synthetic timersdocs/hyperv.txt target/i386/cpu.c target/i386/cpu.h +2 more+23 -00 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchRoman Kagan
1/9R-b
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/9] i386/kvm/hyper-v: refactor and implement 'hv-stimer-direct' and 'hv-passthrough' enlightenments

It has been a while since my 'v1' and I (again) apologize for that.

Changes since v1:
- Existing Hyper-V properties are converted from BOOL to BIT64, this allows us to express dependencies between them in a more natural way as well as simplifies search in kvm_hyperv_properties [Roman Kagan] (hope I got the idea right, but in any case this should be an improvement). PATCH1 added to the series.
- 'hv-all' renamed to 'hv-passthrough' [Roman Kagan]
- minor changes mostly related to support the addition of PATCH1.

Original description:

The recently introduced Direct Mode for Hyper-V synthetic timers enlightenment is only exposed through KVM_GET_SUPPORTED_HV_CPUID ioctl. Take the opportunity and re-implement the way we handle Hyper-V enlightenments in QEMU, add support for hv-stimer-direct and 'hv-all' pass-through mode, add missing dependencies between enlightenments.

Vitaly Kuznetsov (9):
i386/kvm: convert hyperv enlightenments properties from bools to bits i386/kvm: add support for KVM_GET_SUPPORTED_HV_CPUID i386/kvm: move Hyper-V CPUID filling to hyperv_handle_properties() i386/kvm: document existing Hyper-V enlightenments i386/kvm: implement 'hv-passthrough' mode
i386/kvm: hv-stimer requires hv-time and hv-synic i386/kvm: hv-tlbflush/ipi require hv-vpindex
i386/kvm: hv-evmcs requires hv-vapic
i386/kvm: add support for Direct Mode for Hyper-V synthetic timers

 docs/hyperv.txt            | 201 ++++++++++
 hw/i386/pc.c               |   3 +-
 target/i386/cpu.c          |  47 ++-
 target/i386/cpu.h          |  39 +-
 target/i386/hyperv-proto.h |   1 +
 target/i386/hyperv.c       |   2 +-
 target/i386/kvm.c          | 770 ++++++++++++++++++++++++++-----------
 target/i386/machine.c      |   2 +-
 8 files changed, 813 insertions(+), 252 deletions(-)
 create mode 100644 docs/hyperv.txt
Signature · 1 line
2.20.1