|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/3] x86: drop is_pv_32on64_vcpu()
On 06/24/2015 07:49 PM, Andrew Cooper wrote: On 24/06/2015 22:35, Boris Ostrovsky wrote:On 06/23/2015 11:18 AM, Jan Beulich wrote:... as being identical to is_pv_32bit_vcpu() after the x86-32 removal. In a few cases this includes an additional is_pv_32bit_vcpu() -> is_pv_32bit_domain() conversion. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Why can't we latch the mode into is_32bit field? I am essentially suggesting to drop is_32bit_pv and rename has_32bit_shinfo to is_32bit. Then is_pv_32bit_vcpu() becomes '(is_pv_vcpu() && domain->is_32bit)' (or simply domain->is_32bit, depending on context) and has_32bit_shinfo() becomes domain->is_32bit. The reason I am asking is because for the 32b PVH I will need to switch a few places from using is_pv_32bit_vcpu() to has_32bit_shinfo() and that would look strange: asking whether the guest is 32-bit looks more natural than asking whether its shared info is 32-bit. At least it's more natural to my eye. -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |