[Xen-devel] [PATCH v3 0/2] Virtual GIF

2017-11-16 Thread Brian Woods
vmcb.c due to it being unnecessary Changes since v1: - Change a test condition from if it had the vgif feature to if it's enabled in the vmcb - Update for the use of C99 bool type - Added else in vgif init code in vmcb.c Brian Woods (2): x86/svm: Add virtual GIF feature definition

[Xen-devel] [PATCH v3 1/2] x86/svm: Add virtual GIF feature definition

2017-11-16 Thread Brian Woods
Add support for enabling the virtual GIF feature. Signed-off-by: Brian Woods --- xen/include/asm-x86/hvm/svm/svm.h | 2 ++ xen/include/asm-x86/hvm/svm/vmcb.h | 6 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-x86/hvm/svm/svm.h b/xen/include/asm-x86/hvm

[Xen-devel] [PATCH v3 2/2] x86/svm: Add virtual GIF support

2017-11-16 Thread Brian Woods
This patch detects and enables Virtual GIF if available. This allows a nested hypervisor to perform STGIs and CLGIs without having to be intercepted by host hypervisor. Signed-off-by: Brian Woods --- xen/arch/x86/hvm/svm/nestedsvm.c | 7 ++- xen/arch/x86/hvm/svm/svm.c | 1 + xen/arch

Re: [Xen-devel] [PATCH v2 1/2] x86/svm: Add virtual GIF feature definition

2017-11-16 Thread Brian Woods
to if it's enabled in the vmcb - Update for the use of C99 bool type There was some discussion in the irc channel so I'm not sure if there's going be another version soon or not. I need to fix the style error I have with the else anyway. Thank you for the feedback. -- Brian W

[Xen-devel] [PATCH v2 2/2] x86/svm: Add virtual GIF support

2017-11-16 Thread Brian Woods
This patch detects and enables Virtual GIF if available. This allows a nested hypervisor to perform STGIs and CLGIs without having to be intercepted by host hypervisor. Signed-off-by: Brian Woods --- xen/arch/x86/hvm/svm/nestedsvm.c | 7 ++- xen/arch/x86/hvm/svm/svm.c | 1 + xen

[Xen-devel] [PATCH v2 0/2] Virtual GIF

2017-11-16 Thread Brian Woods
http://support.amd.com/TechDocs/24593.pdf Section: Virtual GIF (Section 15.33.2) This patch series adds support to check for and enable the virtual GIF features if available. These patches were tested on a AMD family 17h (EPYC 7401) system. Brian Woods (2): x86/svm: Add virtual GIF feature

[Xen-devel] [PATCH v2 1/2] x86/svm: Add virtual GIF feature definition

2017-11-16 Thread Brian Woods
Add support for enabling the virtual GIF feature. Signed-off-by: Brian Woods --- xen/include/asm-x86/hvm/svm/svm.h | 2 ++ xen/include/asm-x86/hvm/svm/vmcb.h | 6 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-x86/hvm/svm/svm.h b/xen/include/asm-x86/hvm

[Xen-devel] [PATCH 2/2] x86/svm: Add virtual GIF support

2017-11-16 Thread Brian Woods
This patch detects and enables Virtual GIF if available. This allows a nested hypervisor to perform STGIs and CLGIs without having to be intercepted by host hypervisor. Signed-off-by: Brian Woods --- xen/arch/x86/hvm/svm/nestedsvm.c | 7 ++- xen/arch/x86/hvm/svm/svm.c | 1 + xen/arch

[Xen-devel] [PATCH 1/2] x86/svm: Add virtual GIF feature definition

2017-11-16 Thread Brian Woods
Add support for enabling the virtual GIF feature. Signed-off-by: Brian Woods --- xen/include/asm-x86/hvm/svm/svm.h | 2 ++ xen/include/asm-x86/hvm/svm/vmcb.h | 6 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-x86/hvm/svm/svm.h b/xen/include/asm-x86/hvm

[Xen-devel] [PATCH 0/2] Virtual GIF

2017-11-16 Thread Brian Woods
http://support.amd.com/TechDocs/24593.pdf Section: Virtual GIF (Section 15.33.2) This patch series adds support to check for and enable the virtual GIF features if available. These patches were tested on a AMD family 17h (EPYC 7401) system. Brian Woods (2): x86/svm: Add virtual GIF feature

Re: [Xen-devel] [PATCH 3/3] x86/svm: add virtual VMLOAD/VMSAVE support

2017-10-31 Thread Brian Woods
it if there are no other comments. > > All 3 patches Reviewed-by: Andrew Cooper > > ~Andrew > My mistake. Years of lknf has made it a habit. I'll make sure to double check next time. Attached is the git format-patch for that commit. -- Brian Woods >From b0d7916a5a350

[Xen-devel] [PATCH 2/3] x86/svm: add virtual VMLOAD/VMSAVE feature definition

2017-10-31 Thread brian . woods
From: Brian Woods Adding support for enabling the virtual VMLOAD/VMSAVE feature.. Signed-off-by: Brian Woods --- xen/include/asm-x86/hvm/svm/svm.h | 2 ++ xen/include/asm-x86/hvm/svm/vmcb.h | 1 + 2 files changed, 3 insertions(+) diff --git a/xen/include/asm-x86/hvm/svm/svm.h b/xen/include

[Xen-devel] [PATCH 1/3] x86/svm: rename lbr control field in vmcb

2017-10-31 Thread brian . woods
From: Brian Woods Rename the lbr_control field in the vmcb for future/upcoming changes. Signed-off-by: Brian Woods --- xen/arch/x86/hvm/svm/nestedsvm.c| 10 +- xen/arch/x86/hvm/svm/svm.c | 2 +- xen/include/asm-x86/hvm/svm/nestedsvm.h | 4 ++-- xen/include/asm

[Xen-devel] [PATCH 0/3] x86/svm: virtual VMLOAD/VMSAVE

2017-10-31 Thread brian . woods
From: Brian Woods x86/svm: virtual VMLOAD/VMSAVE On AMD family 17h server processors, there is a feature called virtual VMLOAD/VMSAVE. This allows a nested hypervisor to preform a VMLOAD or VMSAVE without needing to be intercepted by the host hypervisor. Virtual VMLOAD/VMSAVE requires the host

[Xen-devel] [PATCH 3/3] x86/svm: add virtual VMLOAD/VMSAVE support

2017-10-31 Thread brian . woods
From: Brian Woods On AMD family 17h server processors, there is a feature called virtual VMLOAD/VMSAVE. This allows a nested hypervisor to preform a VMLOAD or VMSAVE without needing to be intercepted by the host hypervisor. Virtual VMLOAD/VMSAVE requires the host hypervisor to be in long mode