[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 9/9] RFC: Everything else
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Thu, 30 Mar 2023 13:31:51 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QTizeSJO+9kOn1+n68Y6N1srWTuUSBn9DfwkGrvQPng=; b=ZquVZie8KASDhCz4djdTbzcIJ/9sdP8uxMstGUTTwVzK7rD/DjMaJM57l5rDXv64DUFy/l1Uig914zDWpXexFsosyhUkHcvTmi2kUf4AnG96FADB9H58o03GVBD25TmAdEZGRm48qv9ZlLIu8FfEO6whFFx10s2n7HDRPLdRgB5iArmh/DJU01HqaQl3n24nh01XeTtkFV3h3sYn6pJR6CPhYfBSakCoTmxKBCS0wcwU+9hdBflIYwETMtc9CweGkMue8SyliAr+7pKCRbsWTq8Uj9WMUsWdJbx2ximlrKtESA3UmqU2IhED/SgG4xcN51bJjcQQq/3MxeKXmElNFw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=APz5MwRm+HOF0z1iyDxL71aUvCwMUVStVyZropj/Z+PWLh6jAuA2lqFXWALGwuDFeFdwK9uHYSOZC3+VPqpF1BlVszb41IzPL9rgIWHeQz8EaKRtYj7Pf4qpIEl2gl3q31su0k4XkdGhy+RKuPJVORSL/XM31UhSTg19KpiD+cML7vb3obowPDZtF2iTwt+439VM3AJLPyw1KpnMlppjfUw0OOMUT00rJy3C7N4FwJJTotFdDI+677oTUWwZ8vB0e3xF3SbKZXy6t0WbmTpJ6dqHw1203Cods6ekMXXaQhPkkwtOrGJr6qLq1rtOVQaszqzJs4acCzOidPe0k2rq3w==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 30 Mar 2023 12:32:11 +0000
- Ironport-data: A9a23:aje4IaoyoekNrPtSdr8FA5ZzKkVeBmI6ZBIvgKrLsJaIsI4StFCzt garIBnTOPrYNjH3eYokYIy3pxgB7cCAyYJqGVdl+C43QX4U8puZCYyVIHmrMnLJJKUvbq7FA +Y2MYCccZ9uHhcwgj/3b9ANeFEljfngqoLUUbKCYWYpA1c/Ek/NsDo788YhmIlknNOlNA2Ev NL2sqX3NUSsnjV5KQr40YrawP9UlKm06WNwUmAWP6gR5weFzCFNVfrzGInqR5fGatgMdgKFb 76rIIGRpgvx4xorA9W5pbf3GmVirmn6ZFXmZtJ+AsBOszAazsAA+v9T2Mk0MC+7vw6hjdFpo OihgLTrIesf0g8gr8xGO/VQO3kW0aSrY9YrK1Dn2SCY5xWun3cBX5yCpaz5VGEV0r8fPI1Ay RAXABocTgKAu+2U+paQUtlTu88SF/bXO5xK7xmMzRmBZRonabbqZv2QoPV+hXI3jM0IGuvCb c0EbzYpdA7HfxBEJlYQDtQ5gfusgX78NTZfrTp5p4JuuzSVkFM3jeGrbIW9lt+iHK25mm6xo G7c8nu/KRYdLNGFkhKO8262h/+JliT+MG4XPOTgraA70QHJmgT/DjUOcn+8o9zjgHWgAdRgD RdM6w1/vfAtoRnDot7VGkfQTGS/lhwWVsdUEuY6wBqQ0aeS6AGcbkAbShZRZdpgs9U5LRQ62 1nMk973CDhHtLyOVWnb5rqStSm1OyUeMSkFfyBscOcey9zqoYV2hBSWSN9mSPSxloetRW62x C2Wpi8jgblVldQMy6iw4VHAhXSru4TNSQk2oA7QWwpJ8z9EWWJsXKTwgXCz0BqKBN/xooWp1 JTcp/Wj0Q==
- Ironport-hdrordr: A9a23:afC3uaOKsX6pJ8BcTvKjsMiBIKoaSvp037B87TEJdfU1SL38qy jN9M5w6faQslsssR4b9exoVJPufZq+z+8W3WByB9eftVLdyQ2VxehZhOOI/9SHIUPDH4VmpM RdmsZFaeEZojJB/L7HCKXTKadF/DEnmprY4tvj8w==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 30/03/2023 1:06 pm, Jan Beulich wrote:
> On 30.03.2023 14:01, Andrew Cooper wrote:
>> On 30/03/2023 11:16 am, Jan Beulich wrote:
>>>> --- a/tools/fuzz/x86_instruction_emulator/fuzz-emul.c
>>>> +++ b/tools/fuzz/x86_instruction_emulator/fuzz-emul.c
>>>> @@ -893,7 +893,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data_p,
>>>> size_t size)
>>>> struct x86_emulate_ctxt ctxt = {
>>>> .data = &state,
>>>> .regs = &input.regs,
>>>> - .cpuid = &cp,
>>>> + .cpu_policy = &cp,
>>> ... this and ...
>>>
>>>> --- a/tools/tests/x86_emulator/test_x86_emulator.c
>>>> +++ b/tools/tests/x86_emulator/test_x86_emulator.c
>>>> @@ -909,7 +909,7 @@ int main(int argc, char **argv)
>>>>
>>>> ctxt.regs = ®s;
>>>> ctxt.force_writeback = 0;
>>>> - ctxt.cpuid = &cp;
>>>> + ctxt.cpu_policy = &cp;
>>> ... this imo want keeping as you have it here.
>> Ok, so that's a firm "switch to using cpu_policy for emul_ctxt" then.
>>
>> Which is fine - in fact it's one I'd already started splitting out of
>> this patch.
> Hmm, wait - CPUID "basic" and "feat" and alike uses I still would prefer
> to see using "cpuid". It's really only such initializers which (imo
> even logically) want to use the name with the wider coverage.
So its the other way around and you're saying you don't want the field
name to change, and you don't want to see
-#define vcpu_has_fpu() (ctxt->cpuid->basic.fpu)
+#define vcpu_has_fpu() (ctxt->cpu_policy->basic.fpu)
in the resulting diff ?
~Andrew
|