[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 00/38] Delay destruction of memory regions to

From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2 00/38] Delay destruction of memory regions to instance_finalize
Date: Wed, 18 Sep 2013 15:28:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8

Il 18/09/2013 15:19, Peter Maydell ha scritto:
> > There's nothing magic, really.  Both PV and real devices have been doing
> > it forever by placing some registers in RAM instead of MMIO, and
> > communicating synchronization points via interrupts and doorbell registers.
> Sure, but that's a hardware design choice, it's different from
> ripping out the assumptions about device behaviour from
> underneath an existing driver.

That's why I wrote:

Devices have to request BQL-free MMIO explicitly.  You can just use all
the infrastructure to do unlocked bus-master DMA, you can limit BQL-free
MMIO to PV devices, or to extremely simple devices, or to one or two
highly-optimized registers.

Of course the choice of what's safe and what's not depends on the
hardware design and on what the device can expect from the drivers (the
PCI spec doesn't forbid putting additional requirements).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]