Re: [PATCH] device-assignment: register a reset function

2010-11-16 Thread Bernhard Kohl
Am 15.11.2010 22:58, schrieb ext Jan Kiszka: Am 15.11.2010 21:38, Alex Williamson wrote: On Mon, 2010-11-15 at 13:08 +0100, Jan Kiszka wrote: [Wrong list, it's not upstream yet. I'm migrating the thread to kvm.] Am 15.11.2010 12:33, Bernhard Kohl wrote: This is necessary

Re: [PATCH] device-assignment: register a reset function

2010-11-15 Thread Jan Kiszka
[Wrong list, it's not upstream yet. I'm migrating the thread to kvm.] Am 15.11.2010 12:33, Bernhard Kohl wrote: This is necessary because during reboot of a VM the assigned devices continue DMA transfers which causes memory corruption. Signed-off-by: Thomas Ostler thomas.ost...@nsn.com

Re: [PATCH] device-assignment: register a reset function

2010-11-15 Thread Alex Williamson
On Mon, 2010-11-15 at 13:08 +0100, Jan Kiszka wrote: [Wrong list, it's not upstream yet. I'm migrating the thread to kvm.] Am 15.11.2010 12:33, Bernhard Kohl wrote: This is necessary because during reboot of a VM the assigned devices continue DMA transfers which causes memory corruption.

Re: [PATCH] device-assignment: register a reset function

2010-11-15 Thread Jan Kiszka
Am 15.11.2010 21:38, Alex Williamson wrote: On Mon, 2010-11-15 at 13:08 +0100, Jan Kiszka wrote: [Wrong list, it's not upstream yet. I'm migrating the thread to kvm.] Am 15.11.2010 12:33, Bernhard Kohl wrote: This is necessary because during reboot of a VM the assigned devices continue DMA

Re: [PATCH] device-assignment: register a reset function

2010-09-21 Thread Bernhard Kohl
Am 17.09.2010 18:16, schrieb ext Alex Williamson: On Fri, 2010-09-17 at 17:27 +0200, Bernhard Kohl wrote: This is necessary because during reboot of a VM the assigned devices continue DMA transfers which causes memory corruption. Signed-off-by: Thomas Ostlerthomas.ost...@nsn.com

Re: [PATCH] device-assignment: register a reset function

2010-09-17 Thread Bernhard Kohl
Am 16.09.2010 17:48, schrieb ext Alex Williamson: +static void reset_assigned_device(void *opaque) +{ +PCIDevice *d = (PCIDevice *)opaque; +uint32_t conf; + +/* reset the bus master bit to avoid further DMA transfers */ +conf = assigned_dev_pci_read_config(d, 0x04,

[PATCH] device-assignment: register a reset function

2010-09-17 Thread Bernhard Kohl
This is necessary because during reboot of a VM the assigned devices continue DMA transfers which causes memory corruption. Signed-off-by: Thomas Ostler thomas.ost...@nsn.com Signed-off-by: Bernhard Kohl bernhard.k...@nsn.com --- hw/device-assignment.c | 14 ++ 1 files changed, 14

Re: [PATCH] device-assignment: register a reset function

2010-09-17 Thread Alex Williamson
On Fri, 2010-09-17 at 17:27 +0200, Bernhard Kohl wrote: This is necessary because during reboot of a VM the assigned devices continue DMA transfers which causes memory corruption. Signed-off-by: Thomas Ostler thomas.ost...@nsn.com Signed-off-by: Bernhard Kohl bernhard.k...@nsn.com ---

Re: [PATCH] device-assignment: register a reset function

2010-09-16 Thread Alex Williamson
On Tue, Sep 14, 2010 at 9:04 AM, Bernhard Kohl bernhard.k...@nsn.com wrote: This is necessary because during reboot of a VM the assigned devices continue DMA transfers which causes memory corruption. Signed-off-by: Thomas Ostler thomas.ost...@nsn.com Signed-off-by: Bernhard Kohl