[Qemu-devel] [PATCH 1/2] memory: Add MemoryRegion get address space offset helper function

2014-09-03 Thread Bogdan Purcareata
Adding this function would allow a MemoryRegion to compute its start address within the AddressSpace. This is done recursively based on mr->container. Signed-off-by: Bogdan Purcareata --- include/exec/memory.h |8 memory.c | 10 ++ 2 files changed,

[Qemu-devel] [PATCH 0/2] PPC: kvm: Fix incorrect remapping of in-kernel MPIC

2014-09-03 Thread Bogdan Purcareata
On target-ppc, the kvm-openpic memory region is part of the E500-CCSR memory region. On the kernel side, the MPIC is mapped at the same offset as the kvm-openpic within the address space. When adding the PCI BAR0 memory region, an alias is created to point to the E500-CCSR memory region. This resu

[Qemu-devel] [PATCH 2/2] PPC: openpic_kvm: Filter region callbacks based on memory region offset

2014-09-03 Thread Bogdan Purcareata
" memory region. This generates the remapping of the in-kernel MPIC at a wrong offset. The fix consists in an additional filter in kvm_openpic_region_{add,del} to consider only addresses matching the start of the kvm-openpic memory region. Signed-off-by: Bogdan Purcareata Signed-off-by: Mihai Ca

[Qemu-devel] [PATCH 1/2] memory: Add MemoryRegion get address space offset helper function

2014-09-03 Thread Bogdan Purcareata
Adding this function would allow a MemoryRegion to compute its start address within the AddressSpace. This is done recursively based on mr->container. Signed-off-by: Bogdan Purcareata --- include/exec/memory.h |8 memory.c | 10 ++ 2 files changed,

[Qemu-devel] [PATCH 2/2] kvm-openpic: Filter region add callbacks based on memory region offset

2014-09-03 Thread Bogdan Purcareata
region. This generates the remapping of the in-kernel MPIC at a wrong offset. The fix consists in an additional filter in kvm_openpic_region_add to consider only addresses matching the start of the kvm-openpic memory region. Signed-off-by: Bogdan Purcareata Signed-off-by: Mihai Caraman --- hw

[Qemu-devel] [PATCH 0/2] kvm: Fix incorrect re-register of in-kernel MPIC

2014-09-03 Thread Bogdan Purcareata
On target-ppc, the kvm-openpic memory region is part of the E500-CCSR memory region. On the kernel side, the MPIC is mapped at the same offset as the kvm-openpic within the address space. When adding the PCI BAR0 memory region, an alias is created to point to the E500-CCSR memory region. This resu

[Qemu-devel] [PATCH] nbd/trivial: fix type cast for ioctl

2015-04-03 Thread Bogdan Purcareata
n x86. Also ensure consistency with previous type cast in TRACE message. Signed-off-by: Bogdan Purcareata --- nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbd.c b/nbd.c index 91b7d56..da81a5b 100644 --- a/nbd.c +++ b/nbd.c @@ -681,7 +681,7 @@ int nbd_init(int fd, int

[Qemu-devel] [PATCH v2] nbd/trivial: fix type cast for ioctl

2015-04-06 Thread Bogdan Purcareata
n x86. Also ensure consistency with previous type cast in TRACE message. - v2: paranthesis fix Signed-off-by: Bogdan Purcareata --- nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbd.c b/nbd.c index 91b7d56..da81a5b 100644 --- a/nbd.c +++ b/nbd.c @@ -681,7 +681,7 @

[Qemu-devel] [PATCH 0/2] arm/virt: Propagate pcie DMA coherency

2016-06-02 Thread Bogdan Purcareata
ost device tree accordingly, this needs to be passed to the guest as well. Add a routine and device tree helper to configure the guest pcie controller based on the host device tree. Bogdan Purcareata (2): device_tree: introduce qemu_fdt_node_path_prop arm/virt: Mark pcie controller node

[Qemu-devel] [PATCH 1/2] device_tree: introduce qemu_fdt_node_path_prop

2016-06-02 Thread Bogdan Purcareata
This new helper routine returns a NULL terminated array of node paths matching a property and, optionally, a name. Signed-off-by: Bogdan Purcareata --- device_tree.c| 59 include/sysemu/device_tree.h | 20 +++ 2 files

[Qemu-devel] [PATCH 2/2] arm/virt: Mark pcie controller node as dma-coherent

2016-06-02 Thread Bogdan Purcareata
host interconnect is coherent as well). Signed-off-by: Bogdan Purcareata --- hw/arm/virt.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 371e3a7..b640174 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -867,6 +8

Re: [Qemu-devel] [PATCH 2/2] arm/virt: Mark pcie controller node as dma-coherent

2016-06-29 Thread Bogdan Purcareata
On 28.06.2016 17:16, Peter Maydell wrote: > On 16 June 2016 at 14:58, Ard Biesheuvel wrote: >> On 2 June 2016 at 14:45, Alexander Graf wrote: >>> On 02.06.16 14:32, Peter Maydell wrote: This patch seems to change the property of the emulated PCIe controller based on the host PCIe contro