[Qemu-devel] [PATCH 0/3] Remove may_overlap from MemoryRegion and use priorities instead

2013-02-18 Thread Alexey Korolev
priorities can take values 0,1,2 or even 1000. This patch removes these drawbacks and introduces a predefined set of priorities for MemoryRegion. This code does not affect the exisiting memory topology build process, so does not cause any issues related to change of regions visibility. Alexey

[Qemu-devel] [PATCH 2/3] Remove may_overlap flag from MemoryRegion structure

2013-02-18 Thread Alexey Korolev
and have exclusive priority. Since may_overlap is abandoned, memory_region_add_subregion and memory_region_add_subregion_common become equvalent so memory_region_add_subregion_common is removed. Signed-off-by: Alexey Korolev akoro...@gmail.com --- include/exec/memory.h |1 - memory.c

[Qemu-devel] [PATCH 1/3] Replacing memory_region_add_subregion_overlap

2013-02-18 Thread Alexey Korolev
, and optionally use memory_region_set_priority() to change priority from the default. This patch adds predefined priority values in memory.h. Priority can take one of 4 possible values: low (default), medium, high and exclusive (highest). Signed-off-by: Alexey Korolev akoro...@gmail.com --- hw

[Qemu-devel] [PATCH 3/3] Docs update: Overlapping memory regions and priority

2013-02-18 Thread Alexey Korolev
Updated documentation about overlapping memory regions and priority to match the latest implementation. Signed-off-by: Alexey Korolev akoro...@gmail.com --- docs/memory.txt | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/memory.txt b/docs/memory.txt

Re: [Qemu-devel] [PATCH for-1.4] pc: tag apic as overlap region

2013-02-21 Thread Alexey Korolev
On Wed, Feb 20, 2013 at 4:20 AM, Michael S. Tsirkin m...@redhat.com wrote: apic overlaps PCI space. On real hardware it has higher priority, emulate this correctly. This should addresses the following issue: Subject: Re: [BUG] Guest OS hangs on boot when 64bit BAR present (kvm-apic-msi

[Qemu-devel] [PATCH v2] Fix guest OS hang when 64bit PCI bar present

2013-02-21 Thread Alexey Korolev
-apic memory region, so it is never pushed out by PCI devices. The patch is quite safe as it does not touch memory manager. Signed-off-by: Alexey Korolev akoro...@gmail.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/sysbus.c | 27 +++ hw/sysbus.h

Re: [Qemu-devel] [PATCH v2] Fix guest OS hang when 64bit PCI bar present

2013-02-24 Thread Alexey Korolev
open qestion. This patch raises the priority of the kvm-apic memory region, so it is never pushed out by PCI devices. The patch is quite safe as it does not touch memory manager. I have fixed styling issues. Please use this version. Signed-off-by: Alexey Korolev akoro...@gmail.com Signed-off

[Qemu-devel] [BUG] QEMU crashes when 64bit BAR is present

2012-12-04 Thread Alexey Korolev
Hi all, I had qemu 1.2.0 crash when using ivshmem driver with 64bit PCI support enabled. The qemu process is terminated at a very early stage of Linux boot up. Here is the qemu command line: LC_ALL=C

Re: [Qemu-devel] [BUG] QEMU crashes when 64bit BAR is present

2012-12-05 Thread Alexey Korolev
Hi Gerd, Hi, And qemu error output is: qemu: /home/akorolev/qemu-kvm/exec.c:2255: register_subpage: Assertion `existing-mr-subpage || existing-mr == io_mem_unassigned' failed. Guest OS is Centos 5.5 and log is pretty boring, as qemu crashes before Linux can report an issue. Where does

Re: [Qemu-devel] [BUG] QEMU crashes when 64bit BAR is present

2012-12-05 Thread Alexey Korolev
On 06/12/12 09:23, Alexey Korolev wrote: Hi Gerd, Hi, And qemu error output is: qemu: /home/akorolev/qemu-kvm/exec.c:2255: register_subpage: Assertion `existing-mr-subpage || existing-mr == io_mem_unassigned' failed. Guest OS is Centos 5.5 and log is pretty boring, as qemu crashes

Re: [Qemu-devel] [BUG] QEMU crashes when 64bit BAR is present

2012-12-05 Thread Alexey Korolev
I tried the head today. Qemu crashes in the same way as before. Hi, And qemu error output is: qemu: /home/akorolev/qemu-kvm/exec.c:2255: register_subpage: Assertion `existing-mr-subpage || existing-mr == io_mem_unassigned' failed. Guest OS is Centos 5.5 and log is pretty boring, as qemu

Re: [Qemu-devel] [BUG] QEMU crashes when 64bit BAR is present

2012-12-06 Thread Alexey Korolev
On 06/12/12 20:45, Gerd Hoffmann wrote: On 12/06/12 05:09, Alexey Korolev wrote: I tried the head today. Qemu crashes in the same way as before. Hmm. Doesn't reproduce here (using RHEL-5 as guest, although it is 5.8 so more recent than your centos 5.5). Is this a 32bit or 64bit guest

Re: [Qemu-devel] [BUG] QEMU crashes when 64bit BAR is present

2012-12-09 Thread Alexey Korolev
Hi, It is a 64bit guest OS. I've upgraded to RHEL 5.8 and still have the same problem. My rhel5 is 32bit. Could you please send me a qemu command line you are running? qemu-default -m 512 -hda /vmdisk/guests/rhel5.img -device ivshmem,size=128M,shm=ivshmem.root Could you please set the

Re: [Qemu-devel] [BUG] QEMU crashes when 64bit BAR is present

2012-12-12 Thread Alexey Korolev
On 10/12/12 20:22, Gerd Hoffmann wrote: On 12/10/12 03:05, Alexey Korolev wrote: Hi, It is a 64bit guest OS. I've upgraded to RHEL 5.8 and still have the same problem. My rhel5 is 32bit. Could you please send me a qemu command line you are running? qemu-default -m 512 -hda /vmdisk/guests

<    1   2