Re: [Xen-devel] [PATCH] x86/vpt: update last_guest_time with cmpxchg and drop pl_time_lock

2020-02-20 Thread Igor Druzhinin
On 20/02/2020 15:47, Jan Beulich wrote: > On 20.02.2020 16:37, Igor Druzhinin wrote: >> On 20/02/2020 08:27, Jan Beulich wrote: >>> On 19.02.2020 19:52, Igor Druzhinin wrote: On 19/02/2020 07:48, Jan Beulich wrote: > On 20.12.2019 22:39, Igor Druzhinin wrote: >> @@ -38,24 +37,22 @@

Re: [Xen-devel] [PATCH] x86/vpt: update last_guest_time with cmpxchg and drop pl_time_lock

2020-02-20 Thread Jan Beulich
On 20.02.2020 16:37, Igor Druzhinin wrote: > On 20/02/2020 08:27, Jan Beulich wrote: >> On 19.02.2020 19:52, Igor Druzhinin wrote: >>> On 19/02/2020 07:48, Jan Beulich wrote: On 20.12.2019 22:39, Igor Druzhinin wrote: > @@ -38,24 +37,22 @@ void hvm_init_guest_time(struct domain *d) >

Re: [Xen-devel] [PATCH] x86/vpt: update last_guest_time with cmpxchg and drop pl_time_lock

2020-02-20 Thread Igor Druzhinin
On 20/02/2020 08:27, Jan Beulich wrote: > On 19.02.2020 19:52, Igor Druzhinin wrote: >> On 19/02/2020 07:48, Jan Beulich wrote: >>> On 20.12.2019 22:39, Igor Druzhinin wrote: @@ -38,24 +37,22 @@ void hvm_init_guest_time(struct domain *d) uint64_t hvm_get_guest_time_fixed(const struct

Re: [Xen-devel] [PATCH] x86/vpt: update last_guest_time with cmpxchg and drop pl_time_lock

2020-02-20 Thread Jan Beulich
On 19.02.2020 19:52, Igor Druzhinin wrote: > On 19/02/2020 07:48, Jan Beulich wrote: >> On 20.12.2019 22:39, Igor Druzhinin wrote: >>> @@ -38,24 +37,22 @@ void hvm_init_guest_time(struct domain *d) >>> uint64_t hvm_get_guest_time_fixed(const struct vcpu *v, uint64_t at_tsc) >>> { >>> struct

Re: [Xen-devel] [PATCH] x86/vpt: update last_guest_time with cmpxchg and drop pl_time_lock

2020-02-19 Thread Igor Druzhinin
On 19/02/2020 07:48, Jan Beulich wrote: > On 20.12.2019 22:39, Igor Druzhinin wrote: >> @@ -38,24 +37,22 @@ void hvm_init_guest_time(struct domain *d) >> uint64_t hvm_get_guest_time_fixed(const struct vcpu *v, uint64_t at_tsc) >> { >> struct pl_time *pl = v->domain->arch.hvm.pl_time; >> -

Re: [Xen-devel] [PATCH] x86/vpt: update last_guest_time with cmpxchg and drop pl_time_lock

2020-02-18 Thread Jan Beulich
(Resend; no idea where the original, sent on Dec 23rd, ended up - I can't find it in the list archives in any event) On 20.12.2019 22:39, Igor Druzhinin wrote: > @@ -38,24 +37,22 @@ void hvm_init_guest_time(struct domain *d) > uint64_t hvm_get_guest_time_fixed(const struct vcpu *v, uint64_t

Re: [Xen-devel] [PATCH] x86/vpt: update last_guest_time with cmpxchg and drop pl_time_lock

2020-02-18 Thread Igor Druzhinin
On 18/02/2020 17:00, Jan Beulich wrote: > On 20.12.2019 22:39, Igor Druzhinin wrote: >> Similarly to PV vTSC emulation, optimize HVM side for consistency >> and scalability by dropping a spinlock protecting a single variable. >> >> Signed-off-by: Igor Druzhinin > > Seeing that you didn't reply

Re: [Xen-devel] [PATCH] x86/vpt: update last_guest_time with cmpxchg and drop pl_time_lock

2020-02-18 Thread Jan Beulich
On 20.12.2019 22:39, Igor Druzhinin wrote: > Similarly to PV vTSC emulation, optimize HVM side for consistency > and scalability by dropping a spinlock protecting a single variable. > > Signed-off-by: Igor Druzhinin Seeing that you didn't reply to my comment sent on Dec 23rd, I'm going to drop

[Xen-devel] [PATCH] x86/vpt: update last_guest_time with cmpxchg and drop pl_time_lock

2019-12-20 Thread Igor Druzhinin
Similarly to PV vTSC emulation, optimize HVM side for consistency and scalability by dropping a spinlock protecting a single variable. Signed-off-by: Igor Druzhinin --- xen/arch/x86/hvm/vpt.c| 19 --- xen/include/asm-x86/hvm/vpt.h | 5 ++--- 2 files changed, 10