[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 3/7] xen/vm-events: Move monitor_domctl to common-side.
On Mon, Feb 8, 2016 at 9:57 AM, Corneliu ZUZU <czuzu@xxxxxxxxxxxxxxx> wrote: 1. Kconfig: Wouldn't it be safe to include these headers on ARM as well? Â +#include <public/vm_event.h>Â Â Â Â /* for VM_EVENT_X86_CR3 */ Please make a switch on mop->op instead where the default case is to call arch_monitor_domctl. It would be a bit easier to follow. +Â Â Â Â if ( XEN_DOMCTL_MONITOR_OP_GET_CAPABILITIES == mop->op ) "proly"->probably? Â +Â Â Â Â /* The monitor op is proly handled on the arch-side. */ Â Empty line not needed. + Emtpy line not needed. + So I don't particularly like this #if check here. IMHO this should be done in arch-specific function that you call from here that is just empty for ARM. It could be a static inline function as it's rather small. Â +#if CONFIG_X86 +Â Â Â Â if ( VM_EVENT_X86_CR3 == mop->u.mov_to_cr.index ) Emtpy line not needed. + Emtpy line not needed. + Emtpy line not needed. + Looks good otherwise. Thanks, Tamas _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |