Re: [Xen-devel] [PATCH] x86/hvm: Drop more remains of the PVHv1 implementation

2017-07-19 Thread Andrew Cooper
On 19/07/17 15:12, Roger Pau Monné wrote: > On Wed, Jul 19, 2017 at 02:27:31PM +0100, Andrew Cooper wrote: >> These functions don't need is_hvm_{vcpu,domain}() predicates. >> >> hvmop_set_evtchn_upcall_vector() does need the predicate to prevent a PV >> caller accessing the hvm union, but swap the

Re: [Xen-devel] [PATCH] x86/hvm: Drop more remains of the PVHv1 implementation

2017-07-19 Thread Roger Pau Monné
On Wed, Jul 19, 2017 at 02:27:31PM +0100, Andrew Cooper wrote: > These functions don't need is_hvm_{vcpu,domain}() predicates. > > hvmop_set_evtchn_upcall_vector() does need the predicate to prevent a PV > caller accessing the hvm union, but swap the copy_from_guest() and > is_hvm_domain() predica

Re: [Xen-devel] [PATCH] x86/hvm: Drop more remains of the PVHv1 implementation

2017-07-19 Thread Wei Liu
On Wed, Jul 19, 2017 at 02:27:31PM +0100, Andrew Cooper wrote: > These functions don't need is_hvm_{vcpu,domain}() predicates. > > hvmop_set_evtchn_upcall_vector() does need the predicate to prevent a PV > caller accessing the hvm union, but swap the copy_from_guest() and > is_hvm_domain() predica

Re: [Xen-devel] [PATCH] x86/hvm: Drop more remains of the PVHv1 implementation

2017-07-19 Thread Paul Durrant
> -Original Message- > From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: 19 July 2017 14:28 > To: Xen-devel > Cc: Andrew Cooper ; George Dunlap > ; Jan Beulich ; Wei Liu > ; Paul Durrant ; Roger Pau > Monne > Subject: [PATCH] x86/hvm: Drop more remains of the PVHv1 implementa

[Xen-devel] [PATCH] x86/hvm: Drop more remains of the PVHv1 implementation

2017-07-19 Thread Andrew Cooper
These functions don't need is_hvm_{vcpu,domain}() predicates. hvmop_set_evtchn_upcall_vector() does need the predicate to prevent a PV caller accessing the hvm union, but swap the copy_from_guest() and is_hvm_domain() predicate to avoid reading the hypercall parameter if we not going to use it. S