kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] KVM: nSVM: few fixes for the nested migration
@ 2021-05-03 12:54 Maxim Levitsky
  2021-05-03 12:54 ` [PATCH 1/5] KVM: nSVM: fix a typo in svm_leave_nested Maxim Levitsky
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Maxim Levitsky @ 2021-05-03 12:54 UTC (permalink / raw)
  To: kvm
  Cc: Wanpeng Li, Thomas Gleixner,
	open list:X86 ARCHITECTURE (32-BIT AND 64-BIT),
	Jim Mattson, Vitaly Kuznetsov, Paolo Bonzini, H. Peter Anvin,
	Borislav Petkov, Joerg Roedel, Ingo Molnar,
	maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT),
	Sean Christopherson, Cathy Avery, Maxim Levitsky

Those are few fixes for issues I uncovered by doing variants of a\r
synthetic migration test I just created:\r
\r
I modified the qemu, such that on each vm pause/resume cycle,\r
just prior to resuming a vCPU, qemu reads its KVM state,\r
then (optionaly) resets this state by uploading a\r
dummy reset state to KVM, and then it uploads back to KVM,\r
the state that this vCPU had before.\r
\r
I'll try to make this test upstreamable soon, pending few details\r
I need to figure out.\r
\r
Last patch in this series is for false positive warning\r
that I have seen lately when setting the nested state,\r
in nested_svm_vmexit, where it expects the vmcb01 to have\r
VMRUN vmexit, which is not true after nested migration,\r
as it is not fully initialized.\r
If you prefer the warning can be removed instead.\r
\r
Best regards,\r
	Maxim Levitsky\r
\r
Maxim Levitsky (5):\r
  KVM: nSVM: fix a typo in svm_leave_nested\r
  KVM: nSVM: fix few bugs in the vmcb02 caching logic\r
  KVM: nSVM: leave the guest mode prior to loading a nested state\r
  KVM: nSVM: force L1's GIF to 1 when setting the nested state\r
  KVM: nSVM: set a dummy exit reason in L1 vmcb when loading the nested\r
    state\r
\r
 arch/x86/include/asm/kvm_host.h |  1 +\r
 arch/x86/kvm/svm/nested.c       | 29 ++++++++++++++++++++++++++---\r
 arch/x86/kvm/svm/svm.c          |  4 ++--\r
 3 files changed, 29 insertions(+), 5 deletions(-)\r
\r
-- \r
2.26.2\r
\r


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

end of thread, other threads:[~2021-05-03 14:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-03 12:54 [PATCH 0/5] KVM: nSVM: few fixes for the nested migration Maxim Levitsky
2021-05-03 12:54 ` [PATCH 1/5] KVM: nSVM: fix a typo in svm_leave_nested Maxim Levitsky
2021-05-03 12:54 ` [PATCH 2/5] KVM: nSVM: fix few bugs in the vmcb02 caching logic Maxim Levitsky
2021-05-03 12:54 ` [PATCH 3/5] KVM: nSVM: leave the guest mode prior to loading a nested state Maxim Levitsky
2021-05-03 12:54 ` [PATCH 4/5] KVM: nSVM: force L1's GIF to 1 when setting the " Maxim Levitsky
2021-05-03 14:00   ` Paolo Bonzini
2021-05-03 14:24     ` Maxim Levitsky
2021-05-03 12:54 ` [PATCH 5/5] KVM: nSVM: set a dummy exit reason in L1 vmcb when loading " Maxim Levitsky
2021-05-03 14:02   ` Paolo Bonzini
2021-05-03 14:26     ` Maxim Levitsky
2021-05-03 14:03 ` [PATCH 0/5] KVM: nSVM: few fixes for the nested migration Paolo Bonzini

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).