From: Xiaoyao Li <xiaoyao.li@intel.com>
To: Manish <manish.mishra@nutanix.com>, Igor Mammedov <imammedo@redhat.com>
Cc: John Levon <john.levon@nutanix.com>,
qemu-devel@nongnu.org, berrange@redhat.com, zhao1.liu@intel.com,
pbonzini@redhat.com, bob.ball@nutanix.com,
prerna.saxena@nutanix.com
Subject: Re: [PATCH v1] target/i386: Always set leaf 0x1f
Date: Fri, 2 Aug 2024 15:35:35 +0800 [thread overview]
Message-ID: <d987ea0e-da52-403f-b183-95f0ff453504@intel.com> (raw)
In-Reply-To: <4bcae915-5812-4465-8ce0-dca787cc4860@nutanix.com>
On 8/2/2024 12:46 AM, Manish wrote:
>
> On 01/08/24 8:41 pm, Xiaoyao Li wrote:
>> !-------------------------------------------------------------------|
>> CAUTION: External Email
>>
>> |-------------------------------------------------------------------!
>>
>> On 8/1/2024 6:25 PM, Igor Mammedov wrote:
>>> On Thu, 1 Aug 2024 15:36:10 +0530
>>> Manish <manish.mishra@nutanix.com> wrote:
>>>
>>>> On 31/07/24 9:01 pm, Xiaoyao Li wrote:
>>>>> !-------------------------------------------------------------------|
>>>>> CAUTION: External Email
>>>>>
>>>>> |-------------------------------------------------------------------!
>>>>>
>>>>> On 7/31/2024 4:49 PM, John Levon wrote:
>>>>>> On Wed, Jul 31, 2024 at 03:02:15PM +0800, Xiaoyao Li wrote:
>>>>>>>> Windows does not expect 0x1f to be present for any CPU model. But
>>>>>>>> if it
>>>>>>>> is exposed to the guest, it expects non-zero values.
>>>>>>>
>>>>>>> Please fix Windows!
>>>>>>
>>>>>> A ticket has been filed with MSFT, we are aware this is a guest bug.
>>>>>>
>>>>>> But that doesn't really help anybody trying to use Windows right now.
>>>>>
>>>>> For existing buggy Windows, we can still introduce
>>>>> "cpuid-0x1f-enforce" but not make it default on.
>>>>>
>>>>> People want to boot the buggy Windows needs to opt-in it themselves
>>>>> via "-cpu xxx,cpuid-0x1f-enforce=on". This way, we don't have live
>>>>> migration issue and it doesn't affect anything.
>>>>
>>>>
>>>> Yes, that makes sense, I will send a updated patch by tomorrow if no
>>>> one
>>>> has any objection with this.
>>>
>>> I'd rename it to
>>> x-have-cpuid-0x1f-leaf
>>> (x-) to reflect that it's not stable/maintained and subject
>>> to be dropped in future
>>>
>>> Also please clearly spell out that it's a temporary workaround for ...
>>> in commit message.
>>
>> I have a patch at hand, to introduce enable_cpuid_0x1f similar as
>> enable_cpuid_0xb, for TDX:
>>
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_intel-2Dstaging_qemu-2Dtdx_commit_de08fd30926bc9d7997af6bd12cfff1b998da8b7&d=DwIDaQ&c=s883GpUCOChKOHiocYtGcg&r=c4KON2DiMd-szjwjggQcuUvTsPWblztAL0gVzaHnNmc&m=CIrxjRd0KG4ww4BtSxZysWS0tFYfPGTRBG731EmlUcy7BFlAw3-5PLp2SlKPR83m&s=2gKDZXpqB7wE8v0vtN8l65WBqTtXOUJ-FkMblXcT_Ws&e=
>> It is not a temporary solution. So I would suggest to drop (x-).
>> If no objection, I think Manish can start from my patch and it only
>> misses a property definition for windows case:
>>
>> DEFINE_PROP_BOOL("cpuid-0x1f", X86CPU, enable_cpuid_0x1f, false);
>>
>>
> Thanks Xiaoyao, I see your patch does what we require but i am not able
> to track these patches, are these in line to be merged soon? We need
> this urgently. Also as it is just a single line change on top of your
> changes, how i manage my change? Should i wait for you to merge and then
> send patch or you will be fine to directly include it in your series?
Sent it:
https://lore.kernel.org/qemu-devel/20240802072426.4016194-1-xiaoyao.li@intel.com/
We can continue the discussion from there.
>
>>
>>>
>>>>
>>>>>> regards
>>>>>> john
>>>>
>>>>
>>>> Thanks
>>>>
>>>> Manish Mishra
>>>>
>>>
>>
>
> Thanks
>
> Manish Mishra
>
prev parent reply other threads:[~2024-08-02 7:36 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-24 7:52 [PATCH v1] target/i386: Always set leaf 0x1f manish.mishra
2024-07-24 9:00 ` Igor Mammedov
2024-07-24 10:29 ` Manish
2024-07-24 11:13 ` John Levon
2024-07-24 12:38 ` Manish
2024-07-24 12:54 ` Igor Mammedov
2024-07-24 13:50 ` Manish
2024-07-24 15:00 ` Zhao Liu
2024-07-29 6:49 ` Manish
2024-07-29 12:18 ` Igor Mammedov
2024-07-29 12:42 ` Manish
2024-07-30 11:39 ` Igor Mammedov
2024-07-31 14:00 ` Manish
2024-08-02 2:33 ` Zhao Liu
2024-07-31 7:02 ` Xiaoyao Li
2024-07-31 8:49 ` John Levon
2024-07-31 15:31 ` Xiaoyao Li
2024-08-01 10:06 ` Manish
2024-08-01 10:25 ` Igor Mammedov
2024-08-01 15:11 ` Xiaoyao Li
2024-08-01 16:46 ` Manish
2024-08-02 7:35 ` Xiaoyao Li [this message]
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=d987ea0e-da52-403f-b183-95f0ff453504@intel.com \
--to=xiaoyao.li@intel.com \
--cc=berrange@redhat.com \
--cc=bob.ball@nutanix.com \
--cc=imammedo@redhat.com \
--cc=john.levon@nutanix.com \
--cc=manish.mishra@nutanix.com \
--cc=pbonzini@redhat.com \
--cc=prerna.saxena@nutanix.com \
--cc=qemu-devel@nongnu.org \
--cc=zhao1.liu@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.