Re: [PATCH 2/2] KVM: x86: fix handling of role.cr4_pae and rename it to 'gpte_size'

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

 



Sean Christopherson <sean.j.christopherson@xxxxxxxxx> writes:

> On Mon, Mar 11, 2019 at 12:56:33PM +0100, Vitaly Kuznetsov wrote:
>> Sean Christopherson <sean.j.christopherson@xxxxxxxxx> writes:
>> 
>> > +		unsigned gpte_size:1;
>> 
>> This is probably just a matter of taste but I would prefer it to be
>> renamed to something like "gpte_is_64": when I see
>> 
>> role.gpte_size = true
>> 
>> I have to go and read the definition if gpte_size,
>> 
>> role.gpte_is_64 = true
>> 
>> reads more naturally. 
>
> Agreed.  What about gpte_is_8_bytes to avoid being misconstrued as "this
> gpte is for paging in 64-bit mode"?
>

Even better!

-- 
Vitaly



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux