Re: [Xen-devel] [PATCH v1] x86/hvm/viridian: flush remote tlbs by hypercall

2015-11-19 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 19 November 2015 10:18 > To: Paul Durrant > Cc: Andrew Cooper; Ian Campbell; Wei Liu; Ian Jackson; Stefano Stabellini; > xen-de...@lists.xenproject.org; Keir (Xen.org) > Subject: Re: [PATCH v1] x86/hvm/viridian: flu

Re: [Xen-devel] [PATCH v1] x86/hvm/viridian: flush remote tlbs by hypercall

2015-11-19 Thread Jan Beulich
>>> On 19.11.15 at 10:43, wrote: > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -2452,6 +2452,13 @@ int hvm_vcpu_initialise(struct vcpu *v) > if ( rc != 0 ) > goto fail6; > > +if ( is_viridian_domain(d) ) > +{ > +rc = viridian_init(v); I think t

[Xen-devel] [PATCH v1] x86/hvm/viridian: flush remote tlbs by hypercall

2015-11-19 Thread Paul Durrant
The Microsoft Hypervisor Top Level Functional Spec. (section 3.4) defines two bits in CPUID leaf 0x4004:EAX for the hypervisor to recommend whether or not to issue a hypercall for local or remote TLB flush. Whilst it's doubtful whether using a hypercall for local TLB flush would be any more ef