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

Re: [Xen-devel] [V10 PATCH 08/23] PVH xen: Introduce PVH guest type and some basic changes.

>>> On 06.08.13 at 13:29, George Dunlap <George.Dunlap@xxxxxxxxxxxxx> wrote:
> On Wed, Jul 24, 2013 at 2:59 AM, Mukesh Rathor <mukesh.rathor@xxxxxxxxxx> 
> wrote:
>> --- a/xen/arch/x86/x86_64/traps.c
>> +++ b/xen/arch/x86/x86_64/traps.c
>> @@ -141,7 +141,7 @@ void show_registers(struct cpu_user_regs *regs)
>>      }
>>  }
>> -void vcpu_show_registers(const struct vcpu *v)
>> +void vcpu_show_registers(struct vcpu *v)
> Rather than doing this (which could potentially mask a bug in which
> something actually *does* get changed),  wouldn't it make more sense
> to make hvm_kernel_mode (and hvm_get_segment_register) be const?

That's what I suggested first too, but which turned out not to
work: Down the call tree there is a use of v where a pointer to
non-const is required (iirc in VMX specific code).


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.