[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 12/13] xen: register 3-level event channel
On 31/01/13 14:47, Wei Liu wrote: > 3-level event channel is registered in > a) xen_init_IRQ(), when the guest is fresh started; > b) xen_vcpu_restore(), when the guest is restored. > > Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> > --- > arch/x86/xen/enlighten.c | 13 +++++++++++++ > drivers/xen/events.c | 11 ++++++++++- > 2 files changed, 23 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c > index bc893e7..919c7ed 100644 > --- a/arch/x86/xen/enlighten.c > +++ b/arch/x86/xen/enlighten.c [...] > + > + rc = xen_event_channel_register_nlevel(3); > + if (!rc) { > + printk(KERN_INFO "Register 3-level event channel succeeded.\n"); > + xen_set_event_channel_nlevel(3); > + } else { > + printk(KERN_INFO "Register 3-level event channel failed with > %d.\n" > + "Fall back to default 2-level event channel.\n", > + rc); > + xen_set_event_channel_nlevel(2); > + } You should have a function for this, instead of copy-and-paste in two different places. David _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |