[Qemu-devel] [PATCH] qtest: add register fuzzing to RTC test

2012-04-15 Thread Blue Swirl
Signed-off-by: Blue Swirl blauwir...@gmail.com --- tests/rtc-test.c | 17 + 1 file changed, 17 insertions(+) diff --git a/tests/rtc-test.c b/tests/rtc-test.c index 983a980..f23ac3a 100644 --- a/tests/rtc-test.c +++ b/tests/rtc-test.c @@ -240,6 +240,22 @@ static void

Re: [Qemu-devel] [PATCH 3/3] virtio_balloon: Bugfixes for PAGE_SIZE != 4k

2012-04-15 Thread Michael S. Tsirkin
On Fri, Apr 13, 2012 at 01:12:11PM +1000, David Gibson wrote: On Thu, Apr 12, 2012 at 01:14:06PM +0300, Michael S. Tsirkin wrote: On Thu, Apr 12, 2012 at 03:36:35PM +1000, David Gibson wrote: [snip] Good catch! Unfortunately I find the approach a bit convoluted. It also looks like

Re: [Qemu-devel] qemu 1.0 breaks PCI on NetBSD (bisected)

2012-04-15 Thread Avi Kivity
On 04/14/2012 05:48 PM, Michael Tokarev wrote: On 14.04.2012 18:32, Michael Tokarev wrote: On 14.04.2012 18:17, Michael Tokarev wrote: Something in between 0.15 and 1.0 releases of qemu broke all NetBSD PCI functions. This is visible in the lack of any network devices in a NetBSD guest,

Re: [Qemu-devel] [PATCH master/stable-1.0] pci: fix corrupted pci conf index register by unaligned write

2012-04-15 Thread Michael S. Tsirkin
On Sat, Apr 14, 2012 at 07:15:31PM +0400, Michael Tokarev wrote: Ping? Its been 4 months ago, and NetBSD still can't be booted in qemu... I understand this can be done differently, but the patch in question changed behavour and it caused a visible regression, so let's fix this regression

Re: [Qemu-devel] [PATCH 7/7 v5] VMXNET3 paravirtualized device implementation Interface type vmxnet3 added.

2012-04-15 Thread Yan Vugenfirer
On Wed, Apr 11, 2012 at 10:10 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 04/11/2012 02:08 PM, Paolo Bonzini wrote: Il 11/04/2012 19:25, Anthony Liguori ha scritto: Off the top of my head: issues with v5: polluting global namespace, must scope names appropriately with vmxnet_

Re: [Qemu-devel] [PATCH master/stable-1.0] pci: fix corrupted pci conf index register by unaligned write

2012-04-15 Thread Avi Kivity
On 04/15/2012 12:11 PM, Michael S. Tsirkin wrote: On Sat, Apr 14, 2012 at 07:15:31PM +0400, Michael Tokarev wrote: Ping? Its been 4 months ago, and NetBSD still can't be booted in qemu... I understand this can be done differently, but the patch in question changed behavour and it

Re: [Qemu-devel] DOS VM problem with QEMU-KVM and newer kernels

2012-04-15 Thread Avi Kivity
On 04/12/2012 09:32 PM, Gerhard Wiesinger wrote: Hello, I'm having problems with recents kernels and qemu-kvm with a DOS VM: TD286 System: Bad selector: 0007 System: Bad selector: 0D87 System: Bad selector: 001F System: Bad selector: 0007 GP at 0020 21D4 EC 0DC4 Error 269 loading

Re: [Qemu-devel] [PATCH 2/3] pseries: Use more conventional PCI interrupt swizzling

2012-04-15 Thread Michael S. Tsirkin
On Mon, Apr 02, 2012 at 02:17:36PM +1000, David Gibson wrote: Currently the pseries PCI code uses a somewhat strange scheme of PCI irq allocation - one per slot up to a maximum that's greater than the usual 4. This scheme more or less worked, because we were able to tell the guest the irq

Re: [Qemu-devel] [PATCH 1/3] pseries: Fix RTAS based config access

2012-04-15 Thread Michael S. Tsirkin
On Mon, Apr 02, 2012 at 02:17:35PM +1000, David Gibson wrote: On the pseries platform, access to PCI config space is via RTAS calls( which go to the hypervisor) rather than MMIO. This means we don't use the same code path as nearly everyone else which goes through pci_host.c and we're missing

Re: [Qemu-devel] [PATCH v2 0/6] prep: some fixes and Super I/O emulation

2012-04-15 Thread Artyom Tarasenko
On 4/14/12, Hervé Poussineau hpous...@reactos.org wrote: Hi, Patches 1 to 3 implement the pc87312 Super I/O chip. Nice. It looks pretty similar to the SuperIO chip used in Ultra-5. We could re-use it in our sun4u machine. Blue, what do you think? This patch has been tested on PReP emulation

Re: [Qemu-devel] [PATCH 2/3] pseries: Use more conventional PCI interrupt swizzling

2012-04-15 Thread David Gibson
On Sun, Apr 15, 2012 at 01:03:57PM +0300, Michael S. Tsirkin wrote: On Mon, Apr 02, 2012 at 02:17:36PM +1000, David Gibson wrote: Currently the pseries PCI code uses a somewhat strange scheme of PCI irq allocation - one per slot up to a maximum that's greater than the usual 4. This scheme

Re: [Qemu-devel] [PATCH v2 0/6] prep: some fixes and Super I/O emulation

2012-04-15 Thread Blue Swirl
On Sun, Apr 15, 2012 at 10:50, Artyom Tarasenko atar4q...@gmail.com wrote: On 4/14/12, Hervé Poussineau hpous...@reactos.org wrote: Hi, Patches 1 to 3 implement the pc87312 Super I/O chip. Nice. It looks pretty similar to the SuperIO chip used in Ultra-5. We could re-use it in our sun4u

Re: [Qemu-devel] [PATCH 2/3] pseries: Use more conventional PCI interrupt swizzling

2012-04-15 Thread Michael S. Tsirkin
On Sun, Apr 15, 2012 at 09:47:47PM +1000, David Gibson wrote: On Sun, Apr 15, 2012 at 01:03:57PM +0300, Michael S. Tsirkin wrote: On Mon, Apr 02, 2012 at 02:17:36PM +1000, David Gibson wrote: Currently the pseries PCI code uses a somewhat strange scheme of PCI irq allocation - one per

Re: [Qemu-devel] [SeaBIOS] [ANNOUNCE] SeaBIOS 1.7.0

2012-04-15 Thread Fred .
Great! :) Nice to see a new release out. Please make a notice about the release on the front page of the seabios website. On Sun, Apr 15, 2012 at 4:48 AM, Kevin O'Connor ke...@koconnor.net wrote: The 1.7.0 version of SeaBIOS has now been released.  For more information on the release, please

[Qemu-devel] [Bug 982321] [NEW] User mode arm qemu segfault

2012-04-15 Thread Serge Schneider
Public bug reported: The full error is attached. Fixed by using downgrading to 0bcd08b3522e4feffe3111e7c8145f62d32cc1fb Did some regression testing and found that this commit is the problem: dec9c2d4306d7b4f8482ac42dc468ed2a61d is the first bad commit commit

[Qemu-devel] [Bug 982321] Re: User mode arm qemu segfault

2012-04-15 Thread Serge Schneider
** Attachment added: log https://bugs.launchpad.net/bugs/982321/+attachment/3071027/+files/SLidNn8F.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/982321 Title: User mode arm qemu segfault

[Qemu-devel] [PATCH 00/32] target-arm: refactor copro register implementation

2012-04-15 Thread Peter Maydell
This patchseries refactors the target-arm handling of coprocessor registers so that you define each register with a struct (and possibly some read/write/reset functions), rather than having huge nested switch statements in get_cp15()/set_cp15(). My main aim here was to get rid of the

[Qemu-devel] [PATCH 32/32] target-arm: Remove ARM_CPUID_* macros

2012-04-15 Thread Peter Maydell
All the uses of ARM_CPUID() to vary behaviour have now been removed, so we can delete the ARM_CPUID_* macros now. The one exception is the TI915T/925T, because of its odd behaviour where the MIDR value can be changed at runtime. Signed-off-by: Peter Maydell peter.mayd...@linaro.org ---

[Qemu-devel] [PATCH 12/32] target-arm: Convert generic timer cp15 regs

2012-04-15 Thread Peter Maydell
Convert the (dummy) generic timer cp15 implementation. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c | 23 +++ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index c61e0de..620e652

Re: [Qemu-devel] [Bug 982321] [NEW] User mode arm qemu segfault

2012-04-15 Thread Andreas Färber
Am 15.04.2012 15:34, schrieb Serge Schneider: Public bug reported: The full error is attached. Fixed by using downgrading to 0bcd08b3522e4feffe3111e7c8145f62d32cc1fb Did some regression testing and found that this commit is the problem: dec9c2d4306d7b4f8482ac42dc468ed2a61d is the

[Qemu-devel] [Bug 982321] Re: User mode arm qemu segfault

2012-04-15 Thread Serge Schneider
** Description changed: The full error is attached. - Fixed by using downgrading to 0bcd08b3522e4feffe3111e7c8145f62d32cc1fb + Fixed by downgrading to 0bcd08b3522e4feffe3111e7c8145f62d32cc1fb Did some regression testing and found that this commit is the problem:

[Qemu-devel] [PATCH 04/32] hw/pxa2xx_pic: Convert coprocessor registers to new scheme

2012-04-15 Thread Peter Maydell
Convert the coprocessor access functions for the pxa2xx PIC to the arm_cp_reginfo scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- hw/pxa2xx_pic.c | 53 +++-- 1 files changed, 31 insertions(+), 22 deletions(-) diff --git

[Qemu-devel] [PATCH 00/20] w64: Add support for new host

2012-04-15 Thread Stefan Weil
These patches add support for w64 hosts. Patch 01 was already sent. It is needed for debugging of QEMU on w64. The patches can also be pulled from git://qemu.weilnetz.de/qemu.git w64 I tested all resulting 64 bit binaries by calling them without arguments (so only the

[Qemu-devel] [PATCH 03/20] w64: Fix type casts used in some macros in cpu-all.h

2012-04-15 Thread Stefan Weil
Instead of type casts to long, w64 needs type casts to intptr_t. For other hosts, this changes nothing. Signed-off-by: Stefan Weil s...@weilnetz.de --- cpu-all.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 4512518..58420be 100644 ---

[Qemu-devel] [PATCH 10/20] softmmu: Use uintptr_t for physaddr

2012-04-15 Thread Stefan Weil
Variable physaddr is a host address which should be represented by data type 'uintptr_t'. This is needed for w64 and changes nothing for other hosts. Signed-off-by: Stefan Weil s...@weilnetz.de --- softmmu_header.h |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git

[Qemu-devel] [PATCH 21/32] target-arm: convert cp15 crn=7 registers

2012-04-15 Thread Peter Maydell
Convert the cp15 crn=7 registers to the new scheme. Note that to do this we have to distinguish some registers used on the ARM9 and ARM10 from some which are ARM1176 only. This is because the old code returned a value of 0 but always set the Z flag (by clearing env-ZF, since we store the Z flag in

[Qemu-devel] [PATCH 08/32] target-arm: Convert TEECR, TEEHBR to new scheme

2012-04-15 Thread Peter Maydell
Convert the THUMB2EE cp14 registers TEECR and TEEHBR to use arm_cp_reginfo. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c| 55 +-- target-arm/helper.h|2 - target-arm/translate.c | 66

[Qemu-devel] [PATCH 25/32] target-arm: Convert cp15 crn=0 crm={1, 2} feature registers

2012-04-15 Thread Peter Maydell
Convert the cp15 crn=0 crm={1,2} features registers to the new cp reg framework. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu.c| 14 --- target-arm/cpu.h|2 - target-arm/helper.c | 62 -- 3 files

Re: [Qemu-devel] [PATCH 12/20] w64: Fix data types in softmmu*.h

2012-04-15 Thread Stefan Weil
Am 15.04.2012 16:13, schrieb Stefan Weil: w64 requires uintptr_t. Signed-off-by: Stefan Weils...@weilnetz.de --- softmmu_header.h |6 +++--- softmmu_template.h | 20 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/softmmu_header.h

[Qemu-devel] [PATCH 02/32] hw/pxa2xx: Convert cp14 perf registers to new scheme

2012-04-15 Thread Peter Maydell
Convert the PXA2xx cp14 perf registers from old-style coprocessor hooks to the new scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- hw/pxa2xx.c | 142 +- 1 files changed, 61 insertions(+), 81 deletions(-) diff --git

[Qemu-devel] [PATCH 05/32] target-arm: Remove old cpu_arm_set_cp_io infrastructure

2012-04-15 Thread Peter Maydell
All the users of cpu_arm_set_cp_io have been converted, so we can remove it and the infrastructure it used. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu.h | 10 target-arm/helper.c| 54

[Qemu-devel] [PATCH] linux-user: Fix exit syscall with QOM CPU

2012-04-15 Thread Andreas Färber
For QOM'ified CPUs we cannot g_free() CPUArchState, we must object_delete() the object it is embedded into. Should fix LP#982321 (invalid free() while executing pacman w/qemu-arm). Reported-by: Serge Schneider se...@xecdesign.com Signed-off-by: Andreas Färber afaer...@suse.de Cc: Peter Maydell

[Qemu-devel] [PATCH 14/32] target-arm: Convert MMU fault status cp15 registers

2012-04-15 Thread Peter Maydell
Convert the MMU fault status and MPU access permission cp15 registers to the new scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c | 188 +-- 1 files changed, 107 insertions(+), 81 deletions(-) diff --git

[Qemu-devel] [PATCH 05/20] w64: Use larger alignment for section with generated code

2012-04-15 Thread Stefan Weil
The MinGW-w64 compiler allows __attribute__((aligned (32)). Signed-off-by: Stefan Weil s...@weilnetz.de --- exec.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 3dda2ca..6d10595 100644 --- a/exec.c +++ b/exec.c @@ -93,8 +93,7 @@ spinlock_t

[Qemu-devel] [PATCH 29/32] target-arm: Remove c0_cachetype CPUARMState field

2012-04-15 Thread Peter Maydell
Remove the no-longer-used CPUARMState c0_cachetype field. Although this was a constant register we had it in our migration state. Drop this (with resulting version bump) because for ARM currently we prefer cleaner migration code and have not stabilised migration format yet. Signed-off-by: Peter

[Qemu-devel] [PATCH 14/20] target-mips: Fix type cast for w64 (uintptr_t)

2012-04-15 Thread Stefan Weil
This changes nothing for other hosts. Signed-off-by: Stefan Weil s...@weilnetz.de --- target-mips/op_helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index bca1d70..5627447 100644 --- a/target-mips/op_helper.c

[Qemu-devel] [PATCH 03/32] hw/pxa2xx.c: Convert CLKCFG and PWRMODE cp14 regs

2012-04-15 Thread Peter Maydell
Convert the PXA2xx CLKCFG and PWRMODE cp14 registers to the new arm_cp_reginfo scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- hw/pxa2xx.c | 171 -- 1 files changed, 71 insertions(+), 100 deletions(-) diff --git

[Qemu-devel] [PATCH 28/32] target-arm: Convert final ID registers

2012-04-15 Thread Peter Maydell
Convert the final ID registers to the new cp15 scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu.c|2 - target-arm/helper.c | 111 +-- 2 files changed, 63 insertions(+), 50 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 01/20] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF

2012-04-15 Thread Richard Henderson
On 04/15/2012 10:13 AM, Stefan Weil wrote: Not all i386 / x86_64 hosts use ELF. Ask the compiler whether ELF is used. On w64, gdb crashes when ELF_HOST_MACHINE is defined. Cc: Richard Henderson r...@twiddle.net Cc: Blue Swirl blauwir...@gmail.com Signed-off-by: Stefan Weil

[Qemu-devel] [PATCH 15/32] target-arm: Convert cp15 crn=2 registers

2012-04-15 Thread Peter Maydell
Convert the cp15 crn=2 registers (MMU page table control, MPU cache control) to the new scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu.c|1 - target-arm/helper.c | 88 +++ 2 files changed, 33

[Qemu-devel] [PATCH 02/20] tcg/i386: Add support for w64 ABI

2012-04-15 Thread Stefan Weil
w64 uses the registers rcx, rdx, r8 and r9 for function arguments, so it needs a different declaration of tcg_target_call_iarg_regs. rax, rcx, rdx, r8, r9, r10 and r11 may be changed by function calls. rbx, rbp, rdi, rsi, r12, r13, r14 and r15 remain unchanged by function calls. Signed-off-by:

[Qemu-devel] [PATCH 11/32] target-arm: Convert performance monitor registers

2012-04-15 Thread Peter Maydell
Convert the v7 performance monitor cp15 registers to the new scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu.c |4 - target-arm/helper.c| 277 +++- target-arm/translate.c | 26 +- 3 files changed,

[Qemu-devel] [PATCH 17/32] target-arm: Convert cp15 crn=10 registers

2012-04-15 Thread Peter Maydell
We RAZ/WI the entire block of crn=10 registers. Note that this actually covers not just the implementation-defined TLB lockdown registers but also a number of v7 VMSA memory attribute registers which we would need to implement to support TEX remap. We retain the previous QEMU behaviour in this

[Qemu-devel] [PATCH v2 2/3] target-xtensa: add license to core-dc232b.c

2012-04-15 Thread Max Filippov
Signed-off-by: Max Filippov jcmvb...@gmail.com --- target-xtensa/core-dc232b.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/target-xtensa/core-dc232b.c b/target-xtensa/core-dc232b.c index 7c03835..804fdef 100644 ---

[Qemu-devel] [PATCH v2 3/3] target-xtensa: add license to core-fsf.c

2012-04-15 Thread Max Filippov
Signed-off-by: Max Filippov jcmvb...@gmail.com --- target-xtensa/core-fsf.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/target-xtensa/core-fsf.c b/target-xtensa/core-fsf.c index c11d970..e36b0de 100644 --- a/target-xtensa/core-fsf.c +++

[Qemu-devel] [PATCH v2 1/3] target-xtensa: add dc233c core

2012-04-15 Thread Max Filippov
This is Diamond 233L Standard Core Rev.C (LE), implemented through linux/gdb overlay. Signed-off-by: Max Filippov jcmvb...@gmail.com --- Makefile.target|1 + target-xtensa/core-dc233c.c| 55 target-xtensa/core-dc233c/core-isa.h | 475

[Qemu-devel] [PATCH 06/32] target-arm: Add register_cp_regs_for_features()

2012-04-15 Thread Peter Maydell
Add new function register_cp_regs_for_features() as a place to register coprocessor registers dependent on feature flags. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu-qom.h |1 + target-arm/cpu.c |2 ++ target-arm/helper.c | 11 +++ 3 files

Re: [Qemu-devel] [PATCH v2 1/3] target-xtensa: add dc233c core

2012-04-15 Thread Andreas Färber
Am 15.04.2012 17:12, schrieb Max Filippov: This is Diamond 233L Standard Core Rev.C (LE), implemented through linux/gdb overlay. Signed-off-by: Max Filippov jcmvb...@gmail.com --- Makefile.target|1 + target-xtensa/core-dc233c.c| 55

[Qemu-devel] [PATCH 24/32] target-arm: Convert cp15 crn=1 registers

2012-04-15 Thread Peter Maydell
Convert the cp15 crn=1 registers to the new scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu-qom.h |1 + target-arm/cpu.c |7 ++- target-arm/helper.c | 129 +- 3 files changed, 61 insertions(+), 76

[Qemu-devel] [PATCH 07/20] w64: Fix definition of setjmp

2012-04-15 Thread Stefan Weil
The default definition of setjmp which is implemented in MinGW-w64 cannot be used with programs like QEMU which call longjmp from code without structured exception handling (SEH). This code therefore disables stack unwinding. We could also implement SEH for QEMU's generated JIT code, but that is

[Qemu-devel] [PATCH 17/20] disas: Replace 'unsigned long' by 'uintptr_t'

2012-04-15 Thread Stefan Weil
This is needed for w64. It changes nothing for other hosts. Signed-off-by: Stefan Weil s...@weilnetz.de --- disas.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/disas.c b/disas.c index 4f2c4e4..27071c3 100644 --- a/disas.c +++ b/disas.c @@ -268,7 +268,7 @@ void

[Qemu-devel] [PATCH 18/20] nbd: Fix compiler warning (w64)

2012-04-15 Thread Stefan Weil
Portable printing of dev_offset (data type off_t) needs a type cast. Signed-off-by: Stefan Weil s...@weilnetz.de --- nbd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/nbd.c b/nbd.c index 567e94e..406e555 100644 --- a/nbd.c +++ b/nbd.c @@ -813,7 +813,7 @@ static void

[Qemu-devel] [PATCH 09/20] w64: Fix struct CPUTLBEntry

2012-04-15 Thread Stefan Weil
For w64, some entries need 'uintptr_t' instead of 'unsigned long'. For other host systems, both data types are identical, so nothing changes. Signed-off-by: Stefan Weil s...@weilnetz.de --- cpu-defs.h | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cpu-defs.h

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 0/4] QOM'ify Power Architecture CPU

2012-04-15 Thread Andreas Färber
Am 14.04.2012 02:14, schrieb Andreas Färber: Hello David, This series merges my PowerPC QOM'ification v2 series with your TCG/KVM limitations patch. The finalizer is dropped for now, and cpu_ppc_close() drop has already been applied. If I don't hear objections I'm going to apply this

[Qemu-devel] [PATCH 22/32] target-arm: Convert cp15 crn=6 registers

2012-04-15 Thread Peter Maydell
Convert the cp15 crn=6 registers to the new scheme. Note that this includes some minor tidyup: drop an unnecessary underdecoding of op2 on OMAPCP cores, and only implement the pre-v6 c6,c0,0,1 IFAR on the 1026 and not on the other ARMv5 cores, which didn't have it. Signed-off-by: Peter Maydell

Re: [Qemu-devel] [PATCH 15/20] target-ppc: Fix type casts for w64 (uintptr_t)

2012-04-15 Thread Andreas Färber
Am 15.04.2012 16:13, schrieb Stefan Weil: This changes nothing for other hosts. Cc: Alexander Graf ag...@suse.de Signed-off-by: Stefan Weil s...@weilnetz.de --- target-ppc/translate_init.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) (Had you used

[Qemu-devel] [PATCH 01/32] target-arm: initial coprocessor register framework

2012-04-15 Thread Peter Maydell
Initial infrastructure for data-driven registration of coprocessor register implementations. We still fall back to the old-style switch statements pending complete conversion of all existing registers. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu.c | 34

[Qemu-devel] [PATCH 01/20] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF

2012-04-15 Thread Stefan Weil
Not all i386 / x86_64 hosts use ELF. Ask the compiler whether ELF is used. On w64, gdb crashes when ELF_HOST_MACHINE is defined. Cc: Richard Henderson r...@twiddle.net Cc: Blue Swirl blauwir...@gmail.com Signed-off-by: Stefan Weil s...@weilnetz.de --- tcg/i386/tcg-target.c |6 +- 1

[Qemu-devel] [PATCH 27/32] target-arm: Convert MPIDR

2012-04-15 Thread Peter Maydell
Convert the MPIDR to the new cp15 register scheme. This includes giving it its own feature bit rather than doing a CPUID value check. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu.c|2 ++ target-arm/cpu.h|1 + target-arm/helper.c | 50

[Qemu-devel] [PATCH 12/20] w64: Fix data types in softmmu*.h

2012-04-15 Thread Stefan Weil
w64 requires uintptr_t. Signed-off-by: Stefan Weil s...@weilnetz.de --- softmmu_header.h |6 +++--- softmmu_template.h | 20 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/softmmu_header.h b/softmmu_header.h index edc7826..77c95dc 100644 ---

[Qemu-devel] [PATCH 10/32] target-arm: Convert TLS registers

2012-04-15 Thread Peter Maydell
Convert TLS registers to the new cp15 framework Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c| 19 +++ target-arm/translate.c | 58 2 files changed, 19 insertions(+), 58 deletions(-) diff --git

[Qemu-devel] [PATCH 31/32] target-arm: Remove remaining old cp15 infrastructure

2012-04-15 Thread Peter Maydell
There are now no uses of the old cp15 infrastructure, so it can be deleted. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c| 39 --- target-arm/helper.h|3 -- target-arm/translate.c | 59

[Qemu-devel] [PATCH 11/20] w64: Use uintptr_t in exec.c

2012-04-15 Thread Stefan Weil
Replace all type casts to 'long' or 'unsigned long' by 'intptr_t' or 'uintptr_t'. For type casts which are only used to extract the lower bits of an address or to modify those bits, signedness does not matter. There I always use 'uintptr_t'. Signed-off-by: Stefan Weil s...@weilnetz.de ---

[Qemu-devel] [PATCH 16/20] cpu-exec: Remove non-portable type cast and fix format string

2012-04-15 Thread Stefan Weil
This change is needed for w64, but also changes the code for other hosts. Signed-off-by: Stefan Weil s...@weilnetz.de --- cpu-exec.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index d153f97..0344cd5 100644 --- a/cpu-exec.c +++ b/cpu-exec.c

Re: [Qemu-devel] [PATCH] linux-user: Fix exit syscall with QOM CPU

2012-04-15 Thread Peter Maydell
On 15 April 2012 15:39, Andreas Färber afaer...@suse.de wrote: For QOM'ified CPUs we cannot g_free() CPUArchState, we must object_delete() the object it is embedded into. Should fix LP#982321 (invalid free() while executing pacman w/qemu-arm). Reported-by: Serge Schneider se...@xecdesign.com

[Qemu-devel] [PATCH 19/20] w64: Fix time conversion for some versions of MinGW-w64

2012-04-15 Thread Stefan Weil
tb.time is a time value, but not necessarily of the same size as time_t: while time_t is 64 bit for w64, tb.time still is 32 bit only. Therefore we need en explicit conversion. Signed-off-by: Stefan Weil s...@weilnetz.de --- savevm.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)

[Qemu-devel] [PATCH 09/32] target-arm: Convert WFI/barriers special cases to cp_reginfo

2012-04-15 Thread Peter Maydell
Convert the various WFI and barrier instruction special cases to use cp_reginfo infrastructure. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c| 42 +++ target-arm/translate.c | 51

[Qemu-devel] [PATCH 23/32] target-arm: Convert cp15 crn=9 registers

2012-04-15 Thread Peter Maydell
Convert cp15 crn=9 registers (mostly cache lockdown) to the new scheme. Note that this change makes OMAPCP cores RAZ/WI the whole c9 space. This is a change from previous behaviour, but a return to the behaviour of commit c3d2689d when OMAP1 support was first added -- subsequent commits have

[Qemu-devel] [PATCH 16/32] target-arm: Convert cp15 crn=13 registers

2012-04-15 Thread Peter Maydell
Convert the cp15 crn=13 registers (FCSEIDR, CONTEXTIDR, and the ARM946 Trace Process Identifier Register). Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c | 61 ++- 1 files changed, 31 insertions(+), 30 deletions(-)

[Qemu-devel] [PATCH 20/32] target-arm: Convert cp15 VA-PA translation registers

2012-04-15 Thread Peter Maydell
Convert the cp15 VA-PA translation registers (a subset of the crn=7 regs) to the new scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c | 108 ++ 1 files changed, 65 insertions(+), 43 deletions(-) diff --git

[Qemu-devel] [PATCH 30/32] target-arm: Move block cache ops to new cp15 framework

2012-04-15 Thread Peter Maydell
Move the v6 optional block cache ops to the new cp15 framework. This includes only providing them on the CPUs which implemented them, rather than the previous blunderbuss approach of making all MCRR instructions on all CPUs act as NOPs. Signed-off-by: Peter Maydell peter.mayd...@linaro.org ---

[Qemu-devel] [PATCH 20/20] block: Avoid compiler warning for w64

2012-04-15 Thread Stefan Weil
The MinGW-w64 compiler complains about a non-void function which does not return a value. This is not true, but we can help the compiler to see that by rewriting the code. Signed-off-by: Stefan Weil s...@weilnetz.de --- block/raw-win32.c |6 ++ 1 files changed, 2 insertions(+), 4

[Qemu-devel] [Bug 982321] Re: User mode arm qemu segfault

2012-04-15 Thread Andreas Färber
Patch submitted: http://patchwork.ozlabs.org/patch/152614/ Sorry and thanks for reporting! ** Changed in: qemu Status: New = In Progress ** Changed in: qemu Assignee: (unassigned) = Andreas Färber (afaerber) -- You received this bug notification because you are a member of qemu-

[Qemu-devel] [PATCH 04/20] w64: Fix data types in cpu-all.h, exec.c

2012-04-15 Thread Stefan Weil
w64 needs uintptr_t instead of unsigned long. For other hosts, nothing changes. Signed-off-by: Stefan Weil s...@weilnetz.de --- cpu-all.h |8 exec.c|6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 58420be..f7d6867 100644

[Qemu-devel] [PATCH 19/32] target-arm: Convert cp15 MMU TLB control

2012-04-15 Thread Peter Maydell
Convert cp15 MMU TLB control (crn=8) to new scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c | 63 ++ 1 files changed, 43 insertions(+), 20 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c

[Qemu-devel] [PATCH 26/32] target-arm: Convert cp15 cache ID registers

2012-04-15 Thread Peter Maydell
Convert the cp15 cache ID registers to the new scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu.c|2 - target-arm/cpu.h|2 - target-arm/helper.c | 61 +++--- 3 files changed, 33 insertions(+), 32

[Qemu-devel] [PATCH 07/32] target-arm: Convert debug registers to cp_reginfo

2012-04-15 Thread Peter Maydell
Convert the cp14 debug registers (DBGDIDR, DBGDRAR, DBGDSAR) to the cp_reginfo scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c| 25 + target-arm/translate.c | 28 2 files changed, 25 insertions(+),

[Qemu-devel] [PATCH 13/32] target-arm: Convert cp15 c3 register

2012-04-15 Thread Peter Maydell
Convert the cp15 c3 register (MMU domain access control or MPU write buffer control). NB that this is horribly underdecoded for modern cores (should be crn=3,crm=0, opc1=0,opc2=0) but this change preserves the existing QEMU behaviour. Signed-off-by: Peter Maydell peter.mayd...@linaro.org ---

[Qemu-devel] [PATCH 13/20] w64: Fix type cast in os_host_main_loop_wait

2012-04-15 Thread Stefan Weil
Casting a pointer to an integer must use (DWORD_PTR) instead of (DWORD). This also matches the definition of 'fd' (gint for w32, gint64 for w64). Signed-off-by: Stefan Weil s...@weilnetz.de --- main-loop.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/main-loop.c

[Qemu-devel] [PATCH 15/20] target-ppc: Fix type casts for w64 (uintptr_t)

2012-04-15 Thread Stefan Weil
This changes nothing for other hosts. Cc: Alexander Graf ag...@suse.de Signed-off-by: Stefan Weil s...@weilnetz.de --- target-ppc/translate_init.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index

[Qemu-devel] [PATCH 18/32] target-arm: Convert cp15 crn=15 registers

2012-04-15 Thread Peter Maydell
Convert the cp15 crn=15 (implementation specific) registers to the new scheme. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu.c| 40 ++- target-arm/cpu.h|1 + target-arm/helper.c | 202 ++- 3 files

Re: [Qemu-devel] [Qemu-ppc] [PATCH] target-ppc: Init dcache and icache size for e500 user mode

2012-04-15 Thread Andreas Färber
Am 13.04.2012 14:00, schrieb Meador Inge: On 04/13/2012 06:40 AM, Andreas Färber wrote: Am 12.04.2012 19:24, schrieb Scott Wood: On 04/12/2012 11:59 AM, Andreas Färber wrote: Am 10.04.2012 22:04, schrieb Meador Inge: commit f7aa558396dd0f6b7a2b22c05cb503c655854102 pulled the dcache and

Re: [Qemu-devel] [PATCH 1/3] Use uintptr_t for various op related functions

2012-04-15 Thread Richard Henderson
On 04/09/2012 03:17 PM, Blue Swirl wrote: Use uintptr_t instead of void * or unsigned long in several op related functions, env-mem_io_pc and GETPC() macro. Signed-off-by: Blue Swirl blauwir...@gmail.com Reviewed-by: Richard Henderson r...@twiddle.net r~

[Qemu-devel] [PATCH 06/20] w32: Move defines for socket specific errors to qemu-os-win32.h

2012-04-15 Thread Stefan Weil
As those defines are only used for w32, they should be in the header file for w32. All files which include slirp.h or qemu_socket.h also include qemu-os-win32.h. Signed-off-by: Stefan Weil s...@weilnetz.de --- qemu-os-win32.h | 26 ++ qemu_socket.h |6 --

[Qemu-devel] [PATCH 08/20] w64: Undefine macro SYS_OPEN (fixes a compiler warning)

2012-04-15 Thread Stefan Weil
This could also be done in arm-semi.c, but doing it here keeps more w64 related code in one place. Signed-off-by: Stefan Weil s...@weilnetz.de --- qemu-os-win32.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/qemu-os-win32.h b/qemu-os-win32.h index 753679b..99e8423

Re: [Qemu-devel] [PATCH 08/36] vmstate: machine.c is only compiled for !CONFIG_USER_ONLY

2012-04-15 Thread Andreas Färber
Am 21.03.2012 20:20, schrieb Peter Maydell: On 19 March 2012 22:57, Juan Quintela quint...@redhat.com wrote: Signed-off-by: Juan Quintela quint...@redhat.com --- target-ppc/machine.c |8 1 files changed, 0 insertions(+), 8 deletions(-) Could we give this patch a more

[Qemu-devel] [PATCH 0/3] qtest patches

2012-04-15 Thread Blue Swirl
The first patch is the same as before. The second patch is not 100% optimal as we could anticipate for example KVM/ARM or some future qtests which need BIOS or kernel, but it works for now. I tested the targets like this: $ for f in obj-amd64/*-softmmu/qemu-system-*; do echo $f; ./$f -qtest

[Qemu-devel] [PATCH 1/3] qtest: add register fuzzing to RTC test

2012-04-15 Thread Blue Swirl
Signed-off-by: Blue Swirl blauwir...@gmail.com --- tests/rtc-test.c | 17 + 1 file changed, 17 insertions(+) diff --git a/tests/rtc-test.c b/tests/rtc-test.c index 983a980..f23ac3a 100644 --- a/tests/rtc-test.c +++ b/tests/rtc-test.c @@ -240,6 +240,22 @@ static void

[Qemu-devel] [PATCH 3/3] qtest: add m48t59 tests for Sparc

2012-04-15 Thread Blue Swirl
Add simple m48t59 qtests, enable test only for Sparc32 and Sparc64. On PPC, the device is behind PCI bus. Signed-off-by: Blue Swirl blauwir...@gmail.com --- tests/Makefile |5 + tests/m48t59-test.c | 259 +++ 2 files changed, 264

[Qemu-devel] [PATCH semi-urgent v2] linux-user: Fix exit syscall with QOM CPU

2012-04-15 Thread Andreas Färber
For QOM'ified CPUs we cannot g_free() CPUArchState, we must object_delete() the object it is embedded into. Fixes LP#982321 (invalid free() while executing pacman with qemu-arm). Reported-by: Serge Schneider se...@xecdesign.com Reported-by: Russell Keith Davis russ...@russelldavis.org

Re: [Qemu-devel] [PATCH 08/20] w64: Undefine macro SYS_OPEN (fixes a compiler warning)

2012-04-15 Thread Blue Swirl
On Sun, Apr 15, 2012 at 14:13, Stefan Weil s...@weilnetz.de wrote: This could also be done in arm-semi.c, but doing it here keeps more w64 related code in one place. This is just papering over the bug, it could show up with a different OS. The right fix is to change arm-semi.c to prefix the

Re: [Qemu-devel] [PATCH 07/20] w64: Fix definition of setjmp

2012-04-15 Thread Blue Swirl
On Sun, Apr 15, 2012 at 14:13, Stefan Weil s...@weilnetz.de wrote: The default definition of setjmp which is implemented in MinGW-w64 cannot be used with programs like QEMU which call longjmp from code without structured exception handling (SEH). We're currently compiling QEMU with -no-seh, is

Re: [Qemu-devel] [PATCH 10/20] softmmu: Use uintptr_t for physaddr

2012-04-15 Thread Blue Swirl
On Sun, Apr 15, 2012 at 14:13, Stefan Weil s...@weilnetz.de wrote: Variable physaddr is a host address which should be represented by data type 'uintptr_t'. As you note, the name is wrong and should be fixed, for example 'hostaddr' or 'raw_ptr' would be better. If you need to revisit the

Re: [Qemu-devel] [PATCH 07/20] w64: Fix definition of setjmp

2012-04-15 Thread Stefan Weil
Am 15.04.2012 19:02, schrieb Blue Swirl: On Sun, Apr 15, 2012 at 14:13, Stefan Weil s...@weilnetz.de wrote: The default definition of setjmp which is implemented in MinGW-w64 cannot be used with programs like QEMU which call longjmp from code without structured exception handling (SEH). We're

Re: [Qemu-devel] [PATCH 20/20] block: Avoid compiler warning for w64

2012-04-15 Thread Blue Swirl
On Sun, Apr 15, 2012 at 14:13, Stefan Weil s...@weilnetz.de wrote: The MinGW-w64 compiler complains about a non-void function which does not return a value. This is not true, but we can help the compiler to see that by rewriting the code. Signed-off-by: Stefan Weil s...@weilnetz.de ---  

Re: [Qemu-devel] [PATCH 08/20] w64: Undefine macro SYS_OPEN (fixes a compiler warning)

2012-04-15 Thread Stefan Weil
Am 15.04.2012 19:00, schrieb Blue Swirl: On Sun, Apr 15, 2012 at 14:13, Stefan Weils...@weilnetz.de wrote: This could also be done in arm-semi.c, but doing it here keeps more w64 related code in one place. This is just papering over the bug, it could show up with a different OS. The right fix

Re: [Qemu-devel] [PATCH 07/20] w64: Fix definition of setjmp

2012-04-15 Thread Blue Swirl
On Sun, Apr 15, 2012 at 17:09, Stefan Weil s...@weilnetz.de wrote: Am 15.04.2012 19:02, schrieb Blue Swirl: On Sun, Apr 15, 2012 at 14:13, Stefan Weil s...@weilnetz.de wrote: The default definition of setjmp which is implemented in MinGW-w64 cannot be used with programs like QEMU which call

Re: [Qemu-devel] [PATCH 20/20] block: Avoid compiler warning for w64

2012-04-15 Thread Stefan Weil
Am 15.04.2012 19:13, schrieb Blue Swirl: On Sun, Apr 15, 2012 at 14:13, Stefan Weils...@weilnetz.de wrote: The MinGW-w64 compiler complains about a non-void function which does not return a value. This is not true, but we can help the compiler to see that by rewriting the code.

Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/3] pseries: Fix RTAS based config access

2012-04-15 Thread Andreas Färber
Am 15.04.2012 12:16, schrieb Michael S. Tsirkin: On Mon, Apr 02, 2012 at 02:17:35PM +1000, David Gibson wrote: On the pseries platform, access to PCI config space is via RTAS calls( which go to the hypervisor) rather than MMIO. This means we don't use the same code path as nearly everyone

Re: [Qemu-devel] [Qemu-ppc] [PATCH 4/4] pseries: Implement automatic PAPR VIO address allocation

2012-04-15 Thread Andreas Färber
Am 04.04.2012 07:02, schrieb David Gibson: PAPR virtual IO (VIO) devices require a unique, but otherwise arbitrary, address used as a token to the hypercalls which manipulate them. Currently the pseries machine code does an ok job of allocating these addresses when the legacy -net nic /

  1   2   >