Skip to content

svm: implement new DecodeAssist feature

Andre Przywara xen-devel 1 version Applied

Status from this message: Applied as c/2 23236. Fixed to not handle the INVLPGA exit code.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5vmx/hvm: move mov-cr handling functions to generic HVM codexen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/vmx/vmx.c xen/include/asm-x86/hvm/hvm.h +2 more+170 -1541 reply
2/5svm: add bit definitions for SVM DecodeAssistxen/arch/x86/hvm/svm/svm.c xen/include/asm-x86/hvm/svm/svm.h xen/include/asm-x86/hvm/svm/vmcb.h+5 -10 replies
3/5svm: implement instruction fetch part of DecodeAssistxen/arch/x86/hvm/emulate.c xen/arch/x86/hvm/svm/svm.c xen/include/asm-x86/hvm/vcpu.h+35 -92 replies
4/5svm: implement CR access part of DecodeAssistxen/arch/x86/hvm/svm/svm.c+29 -10 replies
5/5svm: implement INVLPG part of DecodeAssistxen/arch/x86/hvm/svm/svm.c+4 -11 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] svm: implement new DecodeAssist feature

Hi,

newer AMD SVM implementations (starting with Bulldozer) have some additions to SVM called DecodeAssist. These bits improve and simplify the handling of some intercepts, now more information is provided in the VMCB already and saves us from decoding this information "manually". These new features are described in recent editions of the APM Vol.2 manual, chapter 15.33.

The first patch moves some code from VMX into HVM to be later used by SVM. The second patch adds the newly defined bits to VMCB and CPUID. Patch 3 to 5 implement three parts of the feature set, more details in the specific emails.

Please comment.

All patches:

Regards,
Andre.

Signature · 2 lines
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany