Re: [PATCH v2 2/4] KVM: SVM: Add support to handle AP reset MSR protocol

From: Sean Christopherson
Date: Wed Sep 01 2021 - 17:45:43 EST


On Thu, Jul 22, 2021, Joerg Roedel wrote:
> diff --git a/arch/x86/include/asm/sev-common.h b/arch/x86/include/asm/sev-common.h
> index 8540972cad04..04470aab421b 100644
> --- a/arch/x86/include/asm/sev-common.h
> +++ b/arch/x86/include/asm/sev-common.h
> @@ -11,6 +11,7 @@
> #define GHCB_MSR_INFO_POS 0
> #define GHCB_DATA_LOW 12
> #define GHCB_MSR_INFO_MASK (BIT_ULL(GHCB_DATA_LOW) - 1)
> +#define GHCB_DATA_MASK GENMASK_ULL(51, 0)

Note used in this patch, not sure if it's intended to be used in GHCB_DATA below?

> #define GHCB_DATA(v) \
> (((unsigned long)(v) & ~GHCB_MSR_INFO_MASK) >> GHCB_DATA_LOW)
> diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h
> index e322676039f4..5a28f223a9a8 100644
> --- a/arch/x86/include/asm/svm.h
> +++ b/arch/x86/include/asm/svm.h
> @@ -164,7 +164,6 @@ struct __attribute__ ((__packed__)) vmcb_control_area {
> u8 reserved_sw[32];
> };
>
> -

Unrelated whitespace change.

> #define TLB_CONTROL_DO_NOTHING 0
> #define TLB_CONTROL_FLUSH_ALL_ASID 1
> #define TLB_CONTROL_FLUSH_ASID 3