[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 4/6] x86/hvm: Constify the read side of vlapic handling
On Mon, Feb 26, 2018 at 05:35:17PM +0000, Andrew Cooper wrote: > This is in preparation to make hvm_x2apic_msr_read() take a const vcpu > pointer. One modification is to alter vlapic_get_tmcct() to not use current. > > This in turn needs an alteration to hvm_get_guest_time_fixed(), which is safe > because the only mutable action it makes is to take the domain plt lock. > > Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> > index 181f4cb..862c715 100644 > --- a/xen/arch/x86/hvm/vpt.c > +++ b/xen/arch/x86/hvm/vpt.c > @@ -35,7 +35,7 @@ void hvm_init_guest_time(struct domain *d) > pl->last_guest_time = 0; > } > > -u64 hvm_get_guest_time_fixed(struct vcpu *v, u64 at_tsc) > +u64 hvm_get_guest_time_fixed(const struct vcpu *v, u64 at_tsc) While there you could s/u64/uint64_t/. Thanks, Roger. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |