[Top][All Lists]

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

Re: [Qemu-devel] RFC: memory API changes

From: Peter Maydell
Subject: Re: [Qemu-devel] RFC: memory API changes
Date: Mon, 23 Mar 2015 15:39:58 +0000

On 23 March 2015 at 15:27, Paolo Bonzini <address@hidden> wrote:
> On 23/03/2015 16:26, Peter Maydell wrote:
>> > True.  But since it's not a new API we can keep the old name for the
>> > simple one.
>> ...except that means that the function you should in
>> general not be using as default is the one with the short
>> name, which is the wrong way round. We should be guiding
>> people writing new code to think about the required
>> behaviour on memory transaction failure (and attributes)
>> as they write the code, not making it easy for them to
>> ignore the issue...
> Not necessarily, for example PCI devices can certainly
> use the short name.

PCI devices should all be using ld*_pci_dma and st*_pci_dma
so they go through the correct address space for the PCIDevice.
Any PCI device making direct calls to ld*_phys/st*_phys
is broken...

-- PMM

reply via email to

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