qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH v1 17/22] target-i386: add cpuid Fn8000_001f


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH v1 17/22] target-i386: add cpuid Fn8000_001f
Date: Wed, 14 Sep 2016 01:07:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0


On 13/09/2016 16:49, Brijesh Singh wrote:
> Fn8000_001f cpuid provides the memory encryption (aka C-bit)
> 
> Signed-off-by: Brijesh Singh <address@hidden>
> ---
>  target-i386/cpu.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/target-i386/cpu.c b/target-i386/cpu.c
> index 6a1afab..e039c08 100644
> --- a/target-i386/cpu.c
> +++ b/target-i386/cpu.c
> @@ -2625,6 +2625,9 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, 
> uint32_t count,
>              *edx = 0;
>          }
>          break;
> +    case 0x8000001F:
> +        host_cpuid(index, 0, eax, ebx, ecx, edx);
> +        break;
>      case 0xC0000000:
>          *eax = env->cpuid_xlevel2;
>          *ebx = 0;
> 
> 
> 

This should only be visible to a SEV-enabled guest.  Also, the xlevel
should be bumped to 0x8000001F for SEV-enabled guests.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]