[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH v2] net: Fix hotplug with pci_add
From: |
Juan Quintela |
Subject: |
[Qemu-devel] Re: [PATCH v2] net: Fix hotplug with pci_add |
Date: |
Tue, 08 Jun 2010 17:55:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Amit Shah <address@hidden> wrote:
> The correct model type wasn't getting added when hotplugging nics with
> pci_add.
>
> Testcase: start VM with default nic type. In the qemu_monitor:
>
> (qemu) pci_add auto nic model=virtio
>
> This results in a nic hot-plug of the same nic type as the default.
>
> This was broken in 5294e2c774f120e10b44652ac143abda356f44eb
>
> Also changes the behaviour where no .init is defined for a
> net_client_type. Previously, 0 was returned, which indicated the init
> was successful and that 0 was the index into the nd_tables[] array.
> Return -1, indicating unsuccessful init, in such a case.
>
> Signed-off-by: Amit Shah <address@hidden>
> ---
> Sorry, v1 was a stale patch.
>
> v2:
> - Init 'ret' to -1, fixes compile err and added note in the commit msg
> explaining this.
>
> net.c | 7 +++++--
> 1 files changed, 5 insertions(+), 2 deletions(-)
Acked-by: Juan Quintela <address@hidden>
[Qemu-devel] Re: [PATCH v2] net: Fix hotplug with pci_add, Michael S. Tsirkin, 2010/06/09