[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH,RFC]: PCI Host Proxy v0.1
From: |
Gianni Tedesco |
Subject: |
Re: [Qemu-devel] [PATCH,RFC]: PCI Host Proxy v0.1 |
Date: |
Tue, 01 Jun 2004 01:12:36 +0100 |
On Tue, 2004-06-01 at 01:04 +0100, Gianni Tedesco wrote:
> On Mon, 2004-05-31 at 18:16 +0100, Gianni Tedesco wrote:
> > Current limitations:
> > o Memory resources are not mapped in yet.
>
> Fabrice,
>
> Will the following work for PCI memory spaces? (I don't have any setups
> which do MMIO atm to test on).
>
> for (i=addr; i < addr + len; i+=4)
> cpu_register_io_memory(i, pciproxy_readl, pciproxy_writel);
erm, i mean, actually i do:
#define IOMEM_PCIPROXY (5 << IO_MEM_SHIFT)
cpu_register_io_memory(IOMEM_PCIPROXY >> IO_MEM_SHIFT,
pciproxy_readl,
pciproxy_writel);
cpu_register_phys_mem(addr, len, IOMEM_PCIPROXY);
And can i still make the change to cpu_register_io_memory to pass down
an opaque pointer? Actually this would be nicer on the
cpu_register_phys_mem, but that'd be an impact on hot-paths i guess so
I'll just have to work around it in pciproxy.
--
// Gianni Tedesco (gianni at scaramanga dot co dot uk)
lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D