Skip to content

KVM: VCPU state extensions

Jan Kiszka kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: x86: Do not return soft events in vcpu_eventsarch/x86/kvm/x86.c+6 -30 replies
2/3KVM: x86: Save&restore interrupt shadow maskDocumentation/kvm/api.txt arch/x86/include/asm/kvm.h arch/x86/kvm/vmx.c +2 more+24 -58 replies
3/3KVM: x86: Add support for saving&restoring debug registersDocumentation/kvm/api.txt arch/x86/include/asm/kvm.h arch/x86/kvm/x86.c +1 more+101 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] KVM: VCPU state extensions

These patches do not technically depend on each other but overlap, so I'm pushing them now in a series.

Patch 1 is a repost. Patch 2 is reworked and comes with the following changes:

- expose only a boolean to user space, mapping it on X86_SHADOW_INT_MOV_SS during write
- do not move X86_SHADOW_INT_* flags around
- Signal capability via KVM_CAP_INTR_SHADOW and manage the new kvm_vcpu_events field via KVM_VCPUEVENT_VALID_SHADOW
- Update docs

Finally, patch 3 is new, plugging the debug register migration (and reset) hole.

You can also pull from

git://git.kiszka.org/linux-kvm vcpu-state

Jan Kiszka (3):
KVM: x86: Do not return soft events in vcpu_events
KVM: x86: Save&restore interrupt shadow mask
KVM: x86: Add support for saving&restoring debug registers

 Documentation/kvm/api.txt  |   42 ++++++++++++++++++++++++-
 arch/x86/include/asm/kvm.h |   13 +++++++-
 arch/x86/kvm/vmx.c         |    2 +-
 arch/x86/kvm/x86.c         |   75 +++++++++++++++++++++++++++++++++++++++++---
 include/linux/kvm.h        |    7 ++++
 5 files changed, 131 insertions(+), 8 deletions(-)