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() predicate to avoid reading the hypercall parameter if we not > going to use it. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
Reviewed-by: Wei Liu <wei.l...@citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel