kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] Add support for nested SVM (kernel) v3
@ 2008-09-17 13:41 Alexander Graf
  2008-09-17 13:41 ` [PATCH 1/9] Add CPUID feature flag for SVM v3 Alexander Graf
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: Alexander Graf @ 2008-09-17 13:41 UTC (permalink / raw)
  To: kvm; +Cc: joro, anthony, avi, Alexander Graf

The current generation of virtualization extensions only supports one VM layer.
While we can't change that, it is pretty easy to emulate the CPU's behavior
and implement the virtualization opcodes ourselves.

This patchset does exactly this for SVM. Using it, KVM can run within a VM.
Since we're emulating the real CPU's behavior, this should also enable other
VMMs to run within KVM.
So far I've only tested to run KVM inside the VM though.

Currently running an SMP level2 guest is broken. I have yet to find out why.

As always, comments and suggestions are highly welcome.

v2 takes most comments from Avi into account. Two things are missing:

- save/restore of hflags
- #VMEXIT on save/restore

I'd rather have them submitted as later patches though, so we don't clutter
this already big patchset (I'm slowly getting crazy using git to manage it)

v3 addresses Joergs comments, including

- V_INTR_MASKING support
- a generic permission checking helper

To be usable, this patchset requires the two simple changes in the userspace
part, that I sent to the list with the first version.

Thanks for reviewing!

Alex


Alexander Graf (9):
  Add CPUID feature flag for SVM v3
  Clean up VINTR setting v3
  Add helper functions for nested SVM v3
  Implement GIF, clgi and stgi v3
  Implement hsave v3
  Add VMLOAD and VMSAVE handlers v3
  Add VMRUN handler v3
  Add VMEXIT handler and intercepts v3
  Allow setting the SVME bit v3

 arch/x86/kvm/kvm_svm.h       |   11 +
 arch/x86/kvm/svm.c           |  743 +++++++++++++++++++++++++++++++++++++++++-
 include/asm-x86/cpufeature.h |    1 +
 include/asm-x86/kvm_host.h   |    5 +
 4 files changed, 748 insertions(+), 12 deletions(-)


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

end of thread, other threads:[~2008-10-15 17:08 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-17 13:41 [PATCH 0/9] Add support for nested SVM (kernel) v3 Alexander Graf
2008-09-17 13:41 ` [PATCH 1/9] Add CPUID feature flag for SVM v3 Alexander Graf
2008-09-17 13:41   ` [PATCH 2/9] Clean up VINTR setting v3 Alexander Graf
2008-09-17 13:41     ` [PATCH 3/9] Add helper functions for nested SVM v3 Alexander Graf
2008-09-17 13:41       ` [PATCH 4/9] Implement GIF, clgi and stgi v3 Alexander Graf
2008-09-17 13:41         ` [PATCH 5/9] Implement hsave v3 Alexander Graf
2008-09-17 13:41           ` [PATCH 6/9] Add VMLOAD and VMSAVE handlers v3 Alexander Graf
2008-09-17 13:41             ` [PATCH 7/9] Add VMRUN handler v3 Alexander Graf
2008-09-17 13:41               ` [PATCH 8/9] Add VMEXIT handler and intercepts v3 Alexander Graf
2008-09-17 13:41                 ` [PATCH 9/9] Allow setting the SVME bit v3 Alexander Graf
2008-09-19 15:59               ` [PATCH 7/9] Add VMRUN handler v3 Joerg Roedel
2008-09-25 17:32                 ` Alexander Graf
2008-09-25 17:37                   ` Joerg Roedel
2008-09-25 20:00                     ` Alexander Graf
2008-09-25 21:22                       ` joro
2008-09-27 12:59                         ` Avi Kivity
2008-09-27 12:58                       ` Avi Kivity
2008-09-25 18:47         ` [PATCH 4/9] Implement GIF, clgi and stgi v3 Joerg Roedel
2008-09-25 19:55           ` Alexander Graf
2008-09-25 21:27             ` Joerg Roedel
2008-09-26  9:01               ` Alexander Graf
2008-09-27 12:55                 ` Avi Kivity
2008-09-27 12:52           ` Avi Kivity
2008-09-19 14:36 ` [PATCH 0/9] Add support for nested SVM (kernel) v3 Joerg Roedel
2008-09-19 14:39   ` Joerg Roedel
2008-09-19 15:56   ` Joerg Roedel
2008-10-15 17:07     ` Alexander Graf
2008-09-19 21:48 ` First performance numbers Joerg Roedel
2008-09-20  1:30   ` Avi Kivity
2008-09-20  6:55     ` Joerg Roedel

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