From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [patch 23/23] QEMU/KVM: device hot-remove Date: Wed, 05 Mar 2008 08:47:16 +0200 Message-ID: <47CE41F4.10104@qumranet.com> References: <20080304183419.187172133@localhost.localdomain> <20080304183904.138632390@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, Glauber Costa To: Marcelo Tosatti Return-path: In-Reply-To: <20080304183904.138632390@localhost.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Marcelo Tosatti wrote: > Add monitor command to hot-remove devices. > > Remove device data on _EJ0 notification. > > Signed-off-by: Marcelo Tosatti > > Index: kvm-userspace.hotplug/qemu/monitor.c > =================================================================== > --- kvm-userspace.hotplug.orig/qemu/monitor.c > +++ kvm-userspace.hotplug/qemu/monitor.c > @@ -1355,6 +1355,7 @@ static term_cmd_t term_cmds[] = { > "value", "set maximum speed (in bytes) for migrations" }, > { "cpu_set", "is", do_cpu_set_nr, "cpu [online|offline]", "change cpu state" }, > { "pci_add", "ss", device_hot_add, "nic|drive [vlan=n][,macaddr=addr][,model=type] [[file=file][,if=type][,bus=n][,unit=m][,media=d][index=i]]", "hotadd PCI device" }, > + { "pci_remove", "i", device_hot_remove, "slot number", "hot remove PCI device" }, > { NULL, NULL, }, > Should be pci_del for consistency with usb_del. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/