RFC Add support for nested SVM (kernel)
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest9 patches 34 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | Add CPUID feature flag for SVMinclude/ | +1 | 0 replies | |
| 2/9 | Clean up VINTR settingarch/ | +14 | 1 reply | |
| 3/9 | Implement GIF, clgi and stgiarch/ arch/ arch/ | +51 | 9 replies | |
| 4/9 | Add helper functions for nested SVMarch/ | +76 | 0 replies | |
| 5/9 | Allow setting the SVME bitarch/ | +2 | 1 reply | |
| 6/9 | Implement hsavearch/ arch/ | +8 | 4 replies | |
| 7/9 | Add VMLOAD and VMSAVE handlersarch/ | +67 | 4 replies | |
| 8/9 | Add VMRUN handlerarch/ arch/ | +196 | 2 replies | |
| 9/9 | Add VMEXIT handler and interceptsarch/ | +305 | 6 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] [RFC] Add support for nested SVM (kernel)
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 this, a 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.
This was created with help from Joerg Roedel. I don't really know how put this information in the patchset though. Maybe set him on signed-off-by?
As always, comments and suggestions are highly welcome.
Alexander Graf (9):
Add CPUID feature flag for SVM
Clean up VINTR setting
Implement GIF, clgi and stgi
Add helper functions for nested SVM
Allow setting the SVME bit
Implement hsave
Add VMLOAD and VMSAVE handlers
Add VMRUN handler
Add VMEXIT handler and intercepts
arch/x86/kvm/kvm_svm.h | 13 + arch/x86/kvm/svm.c | 716 +++++++++++++++++++++++++++++++++++++++++- arch/x86/kvm/svm.h | 2 + include/asm-x86/cpufeature.h | 1 + 4 files changed, 720 insertions(+), 12 deletions(-)