[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 9/9] spapr_llan: fix device reenabling
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 9/9] spapr_llan: fix device reenabling |
Date: |
Mon, 6 May 2013 17:25:17 +0200 |
From: Alexey Kardashevskiy <address@hidden>
Normally, the "tap" device is polled by QEMU if a guest NIC can
receive packets. If a guest NIC is stopped during transfer (rmmod or
ifdown), it may still have packets in a queue which have to be send
to the guest before QEMU enables polling of a "tap" interface via
tap_update_fd_handler().
However the spapr_llan device was missing the qemu_flush_queued_packets()
call so the tap_send_completed() callback was never called and therefore
"tap" interface polling was not enabled ever.
The patch fixes this problem.
Signed-off-by: Alexey Kardashevskiy <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
hw/net/spapr_llan.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/hw/net/spapr_llan.c b/hw/net/spapr_llan.c
index 3150add..03a09f2 100644
--- a/hw/net/spapr_llan.c
+++ b/hw/net/spapr_llan.c
@@ -336,6 +336,8 @@ static target_ulong h_register_logical_lan(PowerPCCPU *cpu,
spapr_vio_dma_set(sdev, VLAN_BD_ADDR(rec_queue), 0,
VLAN_BD_LEN(rec_queue));
dev->isopen = 1;
+ qemu_flush_queued_packets(qemu_get_queue(dev->nic));
+
return H_SUCCESS;
}
--
1.6.0.2
- [Qemu-ppc] [PULL 1.5 0/9] ppc patch queue 2013-05-06, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 8/9] PPC: e500: correct params->ram_size with ram_size, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 7/9] target-ppc: Add read and write of PPR SPR, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 3/9] PPC: e500: initialize GPRs as per epapr, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 1/9] pseries: Factor out check for out-of-bounds LIOBN, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 9/9] spapr_llan: fix device reenabling,
Alexander Graf <=
- [Qemu-ppc] [PATCH 5/9] PPC: Add MMU type for 2.06 with AMR but no TB pages, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 2/9] pseries: Fix debug message for out-of-bounds address in H_PUT_TCE, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 6/9] target-ppc: Fix invalid SPR read/write warnings, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 4/9] pseries: Update SLOF firmware image, Alexander Graf, 2013/05/06
- Re: [Qemu-ppc] [PULL 1.5 0/9] ppc patch queue 2013-05-06, Aurelien Jarno, 2013/05/06