All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
	"Wei Liu" <wl@xen.org>, "Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [PATCH] x86/gen-cpuid: Distinguish default vs max in feature annotations
Date: Fri, 15 May 2020 14:19:13 +0100	[thread overview]
Message-ID: <142f8f43-98fb-506c-0812-e431f2666e5e@citrix.com> (raw)
In-Reply-To: <e6380a05-d67a-b3a8-a624-ba5c161a8c53@suse.com>

On 11/05/2020 08:43, Jan Beulich wrote:
> [CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments unless you have verified the sender and know the content is safe.
>
> On 08.05.2020 17:27, Andrew Cooper wrote:
>> @@ -133,9 +134,13 @@ def crunch_numbers(state):
>>      state.hvm_shadow_def = state.pv_def | state.raw['S']
>>      state.hvm_hap_def = state.hvm_shadow_def | state.raw['H']
>>  
>> +    # TODO: Ignore def/max split until the toolstack migration logic is fixed
>>      state.pv_max = state.pv_def
>>      state.hvm_shadow_max = state.hvm_shadow_def
>>      state.hvm_hap_max = state.hvm_hap_def
>> +    # state.pv_max = state.raw['A'] | state.raw['a']
>> +    # state.hvm_shadow_max = state.pv_max | state.raw['S'] | state.raw['s']
>> +    # state.hvm_hap_max = state.hvm_shadow_max | state.raw['H'] | state.raw['h']
> While in comment form it doesn't matter yet, for actually enabling
> this it would seem to me to be more expressive as
>
>     state.pv_max = state.pv_def | state.raw['a']
>     state.hvm_shadow_max = state.hvm_shadow_def | state.pv_max | state.raw['s']
>     state.hvm_hap_max = state.hvm_hap_def | state.hvm_shadow_max | state.raw['h']
>
> Thoughts?

The format/layout of metadata prohibits that from having any kind of
difference.

Furthermore, expressing it this way doesn't require anyone to look at
the *_def derivation to figure out what is going on.

I'm going to commit it in this form, but will tidy it up to be properly
tabulated in a future patch, to make it easier to read.

~Andrew


      reply	other threads:[~2020-05-15 13:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-08 15:27 [PATCH] x86/gen-cpuid: Distinguish default vs max in feature annotations Andrew Cooper
2020-05-11  7:43 ` Jan Beulich
2020-05-15 13:19   ` Andrew Cooper [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=142f8f43-98fb-506c-0812-e431f2666e5e@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=roger.pau@citrix.com \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /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.