Re: [PATCH 1/2] KVM: SVM: Add Virtual GIF feature definition

From: Natarajan, Janakarajan
Date: Thu Aug 17 2017 - 16:14:11 EST


On 8/16/2017 12:36 PM, Borislav Petkov wrote:
On Wed, Aug 16, 2017 at 10:54:49AM -0500, Janakarajan Natarajan wrote:
Define a new cpufeature definition for Virtual GIF.
"Define ... definition" ?

Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@xxxxxxx>
---
arch/x86/include/asm/cpufeatures.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h
index ca3c48c..58e7211 100644
--- a/arch/x86/include/asm/cpufeatures.h
+++ b/arch/x86/include/asm/cpufeatures.h
@@ -287,6 +287,7 @@
#define X86_FEATURE_PFTHRESHOLD (15*32+12) /* pause filter threshold */
#define X86_FEATURE_AVIC (15*32+13) /* Virtual Interrupt Controller */
#define X86_FEATURE_VIRTUAL_VMLOAD_VMSAVE (15*32+15) /* Virtual VMLOAD VMSAVE */
+#define X86_FEATURE_V_GIF (15*32+16) /* Virtual GIF */
PPR calls it vGIF so make that X86_FEATURE_VGIF.

I will send a v2 with the changes.


Thanks.