login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
17
Re: [Xen-devel] [PATCH 12/12] Unplug emulated disks and nics
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Stefano Stabellini
Subject:
Re: [Xen-devel] [PATCH 12/12] Unplug emulated disks and nics
Date: Thursday, June 17, 2010 - 11:00 am
On Thu, 17 Jun 2010, Konrad Rzeszutek Wilk wrote:
quoted text
> If was thinking of something like this in the header file: > > > int xen_must_unplug_nics() { > #if (defined(CONFIG_XEN_NETDEV_FRONTEND) || \ > defined(CONFIG_XEN_NETDEV_FRONTEND_MODULE)) && \ > (defined(CONFIG_XEN_PLATFORM_PCI) || \ > defined(CONFIG_XEN_PLATFORM_PCI_MODULE)) > return 1; > #else > return 0; > } > > and then your code would be: > > if (xen_must_unplug_nics()) { > printk(".. blah blah "); > xen_emul_unplug |- XEN_unPLIG_ALL_NICS; > } > > and similar for the IDE disks. >
this seems actually better, I'll do that
quoted text
> > > > > > > > + } > > > > + /* Now unplug the emulated devices */ > > > > + if (xen_platform_pci_enabled && !(xen_emul_unplug & XEN_UNPLUG_IGNORE)) > > > > + outw(xen_emul_unplug, XEN_IOPORT_UNPLUG); > > > > +} > > > > + > > > > +static int __init parse_xen_emul_unplug(char *arg) > > > > +{ > > > > + char *p, *q; > > > > + > > > > + for (p = arg; p; p = q) { > > > > + q = strchr(arg, ','); > > > > + if (q) > > > > + *q++ = '__PLACEHOLDER__1_'; > > > > + if (!strcmp(p, "all")) > > > > + xen_emul_unplug |= XEN_UNPLUG_ALL; > > > > > > strncmp.. > > > > > > > is it really needed considering that we know that both strings are NULL > > terminated and one of them is a constant? > > Please do. >
all right --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 01/12] Add support for hvm_op
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 02/12] early PV on HVM
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 03/12] evtchn delivery on HVM
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 04/12] Xen PCI platform device driver
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 05/12] Add suspend\resume support for PV on HVM guests.
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 06/12] Allow xen platform pci device to be compiled ...
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 07/12] Fix find_unbound_irq in presence of ioapic irqs.
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 08/12] Fix possible NULL pointer dereference in pri ...
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 09/12] __setup_vector_irq: handle NULL chip_data
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 10/12] Do not try to disable hpet if it hasn't been ...
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 11/12] Use xen_vcpuop_clockevent, xen_clocksource a ...
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
[PATCH 12/12] Unplug emulated disks and nics
, stefano.stabellini
, (Thu Jun 3, 6:10 am)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Konrad Rzeszutek Wilk
, (Fri Jun 4, 1:20 pm)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Konrad Rzeszutek Wilk
, (Fri Jun 4, 1:23 pm)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Stefano Stabellini
, (Mon Jun 7, 7:38 am)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Stefano Stabellini
, (Mon Jun 7, 7:39 am)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Konrad Rzeszutek Wilk
, (Tue Jun 8, 6:46 am)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Stefano Stabellini
, (Tue Jun 8, 8:55 am)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Jeremy Fitzhardinge
, (Tue Jun 8, 9:09 am)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Konrad Rzeszutek Wilk
, (Tue Jun 8, 9:12 am)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Stefano Stabellini
, (Tue Jun 8, 9:25 am)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Konrad Rzeszutek Wilk
, (Tue Jun 8, 12:05 pm)
Re: [Xen-devel] [PATCH 02/12] early PV on HVM
, Stefano Stabellini
, (Thu Jun 10, 6:36 am)
Re: [Xen-devel] [PATCH 12/12] Unplug emulated disks and nics
, Konrad Rzeszutek Wilk
, (Mon Jun 14, 2:20 pm)
Re: [Xen-devel] [PATCH 05/12] Add suspend\resume support f ...
, Konrad Rzeszutek Wilk
, (Mon Jun 14, 2:20 pm)
Re: [Xen-devel] [PATCH 03/12] evtchn delivery on HVM
, Konrad Rzeszutek Wilk
, (Mon Jun 14, 2:20 pm)
Re: [Xen-devel] [PATCH 06/12] Allow xen platform pci devic ...
, Konrad Rzeszutek Wilk
, (Mon Jun 14, 2:20 pm)
Re: [Xen-devel] [PATCH 06/12] Allow xen platform pci devic ...
, Jeremy Fitzhardinge
, (Tue Jun 15, 9:22 am)
Re: [Xen-devel] [PATCH 03/12] evtchn delivery on HVM
, Stefano Stabellini
, (Thu Jun 17, 8:41 am)
Re: [Xen-devel] [PATCH 06/12] Allow xen platform pci devic ...
, Stefano Stabellini
, (Thu Jun 17, 8:42 am)
Re: [Xen-devel] [PATCH 05/12] Add suspend\resume support f ...
, Stefano Stabellini
, (Thu Jun 17, 8:42 am)
Re: [Xen-devel] [PATCH 12/12] Unplug emulated disks and nics
, Stefano Stabellini
, (Thu Jun 17, 8:42 am)
Re: [Xen-devel] [PATCH 03/12] evtchn delivery on HVM
, Konrad Rzeszutek Wilk
, (Thu Jun 17, 10:38 am)
Re: [Xen-devel] [PATCH 03/12] evtchn delivery on HVM
, Stefano Stabellini
, (Thu Jun 17, 10:40 am)
Re: [Xen-devel] [PATCH 12/12] Unplug emulated disks and nics
, Konrad Rzeszutek Wilk
, (Thu Jun 17, 10:46 am)
Re: [Xen-devel] [PATCH 12/12] Unplug emulated disks and nics
, Stefano Stabellini
, (Thu Jun 17, 11:00 am)
Re: [Xen-devel] [PATCH 12/12] Unplug emulated disks and nics
, Jeremy Fitzhardinge
, (Thu Jun 17, 4:35 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
Re: [PATCH 5/5]bluetooth:hci_bcsp Fix operation on 'bcsp->msgq_txseq' may be un...
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Andy Walls
Re: [PATCH 11/32] v4l/cx18: update workqueue usage
Pierre Ossman
Re: sdio: enhance IO_RW_EXTENDED support
Thomas Gleixner
[patch -mm 19/28] x86_64: Use generic cmos update
git-commits-head
:
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ACPICA: Fix to allow zero-length ASL field declarations
Linux Kernel Mailing List
tracing: Simplify trace_option_write()
Linux Kernel Mailing List
ARM: Add Versatile Express SMP support
Linux Kernel Mailing List
ixgbe: fix automatic LRO/RSC settings for low latency
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Petko Manolov
git and binary files
Johannes Sixt
[PATCH 05/40] Windows: Strip ".exe" from the program name.
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
Marcin
Re: 4.6 reboots x336 ibm server(s)
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Colocation donated by:
Syndicate