qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: John Allen <john.allen@amd.com>, qemu-devel@nongnu.org
Cc: yazen.ghannam@amd.com, michael.roth@amd.com, babu.moger@amd.com,
	william.roche@oracle.com, joao.m.martins@oracle.com
Subject: Re: [PATCH 1/2] i386: Add support for SUCCOR feature
Date: Fri, 7 Jul 2023 16:25:22 +0200	[thread overview]
Message-ID: <d4c1bb9b-8438-ed00-c79d-e8ad2a7e4eed@redhat.com> (raw)
In-Reply-To: <20230706194022.2485195-2-john.allen@amd.com>

On 7/6/23 21:40, John Allen wrote:
>       case 0x80000007:
>           *eax = 0;
> -        *ebx = 0;
> +        *ebx = env->features[FEAT_8000_0007_EBX] | CPUID_8000_0007_EBX_SUCCOR;
>           *ecx = 0;
>           *edx = env->features[FEAT_8000_0007_EDX];
>           break;

I agree that it needs no hypervisor support, but Babu is right that you 
cannot add it unconditionally (especially not on Intel processors).

You can special case CPUID_8000_0007_EBX_SUCCOR in 
kvm_arch_get_supported_cpuid() so that it is added even on old kernels. 
There are already several such cases.  Adding it to KVM is nice to have 
anyway, so please send a patch for that.

Also, the patch does not compile (probably you missed a prerequisite) as 
it lacks all the rigamarole that is needed to add FEAT_8000_0007_EBX.

Paolo



  parent reply	other threads:[~2023-07-07 14:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-06 19:40 [PATCH 0/2] Fix MCE handling on AMD hosts John Allen
2023-07-06 19:40 ` [PATCH 1/2] i386: Add support for SUCCOR feature John Allen
2023-07-06 20:22   ` Moger, Babu
2023-07-06 21:07     ` Joao Martins
2023-07-07 14:25   ` Paolo Bonzini [this message]
2023-07-12 19:11     ` John Allen
2023-07-20 13:29       ` Joao Martins
2023-07-06 19:40 ` [PATCH 2/2] i386: Fix MCE support for AMD hosts John Allen
2023-07-06 21:07   ` Joao Martins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d4c1bb9b-8438-ed00-c79d-e8ad2a7e4eed@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=babu.moger@amd.com \
    --cc=joao.m.martins@oracle.com \
    --cc=john.allen@amd.com \
    --cc=michael.roth@amd.com \
    --cc=qemu-devel@nongnu.org \
    --cc=william.roche@oracle.com \
    --cc=yazen.ghannam@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).