Re: [Qemu-devel] [PATCH 2/2] vmstate, memory: decouple vmstate from memory API

2012-01-07 Thread Stefan Weil
Am 08.01.2012 06:14, schrieb Jordan Justen: Avi, When using pflash_cfi01, I hit the assert(new_block) added above. It seemed to be caused by the low bits of addr being 0x7. This seems to be come from cpu_register_io_memory in memory_region_init_rom_device. Would this patch be an appropriate fi

Re: [Qemu-devel] [PATCH 2/2] vmstate, memory: decouple vmstate from memory API

2012-01-07 Thread Jordan Justen
On Tue, Dec 20, 2011 at 06:05, Avi Kivity wrote: > +void qemu_ram_set_idstr(ram_addr_t addr, const char *name, DeviceState *dev) >  { >     RAMBlock *new_block, *block; > > -    size = TARGET_PAGE_ALIGN(size); > -    new_block = g_malloc0(sizeof(*new_block)); > +    new_block = NULL; > +    QLIST_

Re: [Qemu-devel] [PATCH 1/2] m48t59: drop obsolete address base arithmetic

2012-01-07 Thread Andreas Färber
Am 07.01.2012 18:29, schrieb Blue Swirl: > On Thu, Jan 5, 2012 at 17:45, Andreas Färber wrote: >> Am 15.10.2011 15:50, schrieb Blue Swirl: >>> Remove now incorrect address base arithmetic, missed by >>> 9936d6e42392f1440505dfa9df065eabd251cadf. Fixes Sparc64 boot. >> >> ...but breaks PReP boot: >>

Re: [Qemu-devel] [PATCH 09/30] qdev: move qdev->info to class

2012-01-07 Thread Andreas Färber
Am 03.01.2012 01:51, schrieb Anthony Liguori: > Right now, DeviceInfo acts as the class for qdev. In order to switch to a > proper ObjectClass derivative, we need to ween all of the callers off of > interacting directly with the info pointer. > > Signed-off-by: Anthony Liguori > --- > diff --gi

Re: [Qemu-devel] [PATCH 27/30] unin_pci: remove phantom qdev devices in unin_pci

2012-01-07 Thread Andreas Färber
Am 03.01.2012 01:52, schrieb Anthony Liguori: > Same problem as with grackle. This code can't possibly work. For the record, this comment was not updated for v2: It does work. The name conflict needs to be resolved, e.g., by adding -pcihost to the SysBus device names. Andreas > Signed-off-by:

Re: [Qemu-devel] [PATCH 26/30] grackle: remove broken pci device

2012-01-07 Thread Andreas Färber
Am 08.01.2012 02:46, schrieb Aurelien Jarno: > On Mon, Jan 02, 2012 at 06:52:15PM -0600, Anthony Liguori wrote: >> I have no idea what's going on here, but this is broken and cannot possibly >> work because: >> >> 1) It's qdev name conflicts with a device that sits on SysBus >> >> 2) The PCI cons

Re: [Qemu-devel] Restarting my activity on QEMU

2012-01-07 Thread Andreas Färber
[cc qemu-devel went missing] Hi Aurélien, Am 07.01.2012 20:43, schrieb Aurelien Jarno: > Just a few words to tell I totally disappeared from QEMU last summer due > to a burn-out. After successfully contributing back to some other > projects, I am going to slowly restart my activity on QEMU. Gla

Re: [Qemu-devel] [PATCH 26/30] grackle: remove broken pci device

2012-01-07 Thread Aurelien Jarno
On Mon, Jan 02, 2012 at 06:52:15PM -0600, Anthony Liguori wrote: > I have no idea what's going on here, but this is broken and cannot possibly > work because: > > 1) It's qdev name conflicts with a device that sits on SysBus > > 2) The PCI constructor expects a SysBus device... but's it's a PCI

Re: [Qemu-devel] Restarting my activity on QEMU

2012-01-07 Thread Anthony Liguori
On 01/07/2012 01:43 PM, Aurelien Jarno wrote: Hi all, Just a few words to tell I totally disappeared from QEMU last summer due to a burn-out. After successfully contributing back to some other projects, I am going to slowly restart my activity on QEMU. Great to hear, welcome back! Regards, A

Re: [Qemu-devel] [PATCH 0/6] AREG0 patches v4

2012-01-07 Thread Aurelien Jarno
On Sat, Jan 07, 2012 at 10:24:09PM +, Blue Swirl wrote: > In this version, I made basic AREG0 free load/store implementations > for all targets. Only x86-64 is tested, others have probably problems, > especially 64 bit guest (Sparc64 in this case) on 32 bit hosts. > > I think this should be co

Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE

2012-01-07 Thread Gerhard Wiesinger
On Sat, 7 Jan 2012, Gerhard Wiesinger wrote: No NIC: -net none => No iPXE ROM (correct). but with the previously listed config no iPXE ROM should be there. Saw this is done through paravirtualization from Seabios/QEMU or KVM. So there must be a bug with the empty romfile options with net or dev

Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE

2012-01-07 Thread Kevin O'Connor
On Sat, Jan 07, 2012 at 11:47:29PM +0100, Gerhard Wiesinger wrote: > On Sat, 7 Jan 2012, Kevin O'Connor wrote: > >I downloaded 8xx_64.rom and tried the above command line. > >Interestingly, it will register a BEV for a CD drive - which confirms > >my suspicion that it wont use a BCV. Also interest

Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE

2012-01-07 Thread Gerhard Wiesinger
On Sat, 7 Jan 2012, Kevin O'Connor wrote: On Sat, Jan 07, 2012 at 10:00:56AM +0100, Gerhard Wiesinger wrote: On Fri, 6 Jan 2012, Kevin O'Connor wrote: I'm not sure what a SCSI rom would do with a CD drive. My guess is that it wouldn't map it to a BIOS visible drive id at all, as there's no wa

Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE

2012-01-07 Thread Gerhard Wiesinger
On Sat, 7 Jan 2012, Kevin O'Connor wrote: On Sat, Jan 07, 2012 at 09:35:55AM +0100, Gerhard Wiesinger wrote: [...] 5. Legacy option rom 6. DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD] 7. iPXE (PCI 00:00.0) But there is still the iPXE ROM there (I think I didn't see iPXE because it is last one

[Qemu-devel] [PATCH 6/6] Sparc: avoid AREG0 wrappers for memory access helpers

2012-01-07 Thread Blue Swirl
Adjust generation of load and store templates so that the functions take a parameter for CPUState instead of relying on global env. Remove wrappers. Move remaining memory helpers to ldst_helper.c. Signed-off-by: Blue Swirl --- Makefile.target| 12 ++- configure |

[Qemu-devel] [PATCH 3/6] TCG: add 5 arg helpers to def-helper.h

2012-01-07 Thread Blue Swirl
Signed-off-by: Blue Swirl --- def-helper.h | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/def-helper.h b/def-helper.h index 8a822c7..a13310e 100644 --- a/def-helper.h +++ b/def-helper.h @@ -118,6 +118,8 @@ DEF_HELPER_FLAGS_3(name, 0, ret, t

[Qemu-devel] [PATCH 2/6] TCG/sparc: use iargs or oargs instead of register names etc

2012-01-07 Thread Blue Swirl
Don't use register names (or temporary registers) for call arguments and return values directly but iargs or oargs tables. Later it will be easier to shift the registers used. Signed-off-by: Blue Swirl --- tcg/sparc/tcg-target.c | 44 ++-- 1 files change

[Qemu-devel] [PATCH 1/6] TCG/i386: use iargs or oargs instead of register names

2012-01-07 Thread Blue Swirl
Don't use register names directly but iargs or oargs tables. Later it will be easier to shift the registers used. Signed-off-by: Blue Swirl --- tcg/i386/tcg-target.c | 75 +--- 1 files changed, 45 insertions(+), 30 deletions(-) diff --git a/tcg/i386

[Qemu-devel] [PATCH 0/6] AREG0 patches v4

2012-01-07 Thread Blue Swirl
In this version, I made basic AREG0 free load/store implementations for all targets. Only x86-64 is tested, others have probably problems, especially 64 bit guest (Sparc64 in this case) on 32 bit hosts. I think this should be committed as a starting point if there are no major objections. Blue Sw

Re: [Qemu-devel] [PULL 0/3] target-arm queue

2012-01-07 Thread Aurelien Jarno
On Thu, Jan 05, 2012 at 04:44:31PM +, Peter Maydell wrote: > Pending target-arm patches; not very many, but seems better to > commit them now, since there might be further trustzone related > patches that would have to sit on top of these. Please pull. > > The following changes since commit c4

[Qemu-devel] [PATCH 1/4 v2] target-i386: fix {min, max}{pd, ps, sd, ss} SSE2 instructions

2012-01-07 Thread Aurelien Jarno
On Sat, Jan 07, 2012 at 08:22:53PM +, Peter Maydell wrote: > On 7 January 2012 20:09, Aurelien Jarno wrote: > > minpd, minps, minsd, minss and maxpd, maxps, maxsd, maxss SSE2 > > instructions have been broken when switching target-i386 to softfloat. > > It's not possible to use comparison inst

Re: [Qemu-devel] [PULL 00/10] ppc patch queue 2012-01-03

2012-01-07 Thread Aurelien Jarno
On Tue, Jan 03, 2012 at 04:08:12PM +0100, Alexander Graf wrote: > Hi Anthony / Aurelien / Blue, > > This is my current patch queue for ppc. Please pull. > > It includes a screendump segfault fix patch that is not PPC specific, but has > been on the ML forever now, so I assume it's safe to pull as

Re: [Qemu-devel] [PATCH] sparc-linux-user: Fix missing symbols in .rel/.rela.plt sections

2012-01-07 Thread Aurelien Jarno
On Sat, Jan 07, 2012 at 08:36:12PM +, Blue Swirl wrote: > On Sat, Jan 7, 2012 at 20:16, Aurelien Jarno wrote: > > Fix .rel.plt sections in the output to not only include .rel.plt > > sections from the input but also the .rel.iplt sections and to define > > the hidden symbols __rel_iplt_start a

Re: [Qemu-devel] Restarting my activity on QEMU

2012-01-07 Thread Blue Swirl
On Sat, Jan 7, 2012 at 19:43, Aurelien Jarno wrote: > Hi all, > > Just a few words to tell I totally disappeared from QEMU last summer due > to a burn-out. After successfully contributing back to some other > projects, I am going to slowly restart my activity on QEMU. I will try > to process the p

Re: [Qemu-devel] [PATCH] PL011: Fix ID reporting

2012-01-07 Thread Marek Vasut
> On 7 January 2012 20:11, Marek Vasut wrote: > > The AMBA IDs are supposed to be at the end of 0x2000 block, which the > > PL011 UART allocates. Current QEMU implementation puts those IDs at > > 0x1000 offset, which is wrong. The QEMU implementation also allocates > > only 0x1000 instead of 0x200

[Qemu-devel] [PATCH 1/4] target-i386: fix {min, max}{pd, ps, sd, ss} SSE2 instructions

2012-01-07 Thread Aurelien Jarno
minpd, minps, minsd, minss and maxpd, maxps, maxsd, maxss SSE2 instructions have been broken when switching target-i386 to softfloat. It's not possible to use comparison instructions on float types anymore to softfloat, so use the floatXX_min anf floatXX_max functions instead. As a bonus it implem

[Qemu-devel] [PATCH 4/4] target-i386: fix SSE rounding and flush to zero

2012-01-07 Thread Aurelien Jarno
SSE rounding and flush to zero control has never been implemented. However given that softfloat-native was using a single state for FPU and SSE and given that glibc is setting both FPU and SSE state in fesetround(), this was working correctly up to the switch to softfloat. Fix that by adding an up

Re: [Qemu-devel] [PATCH] PL011: Fix ID reporting

2012-01-07 Thread Peter Maydell
On 7 January 2012 20:11, Marek Vasut wrote: > The AMBA IDs are supposed to be at the end of 0x2000 block, which the PL011 > UART > allocates. Current QEMU implementation puts those IDs at 0x1000 offset, which > is > wrong. The QEMU implementation also allocates only 0x1000 instead of 0x2000 of >

Re: [Qemu-devel] [PATCH] sparc-linux-user: Fix missing symbols in .rel/.rela.plt sections

2012-01-07 Thread Blue Swirl
On Sat, Jan 7, 2012 at 20:16, Aurelien Jarno wrote: > Fix .rel.plt sections in the output to not only include .rel.plt > sections from the input but also the .rel.iplt sections and to define > the hidden symbols __rel_iplt_start and __rel_iplt_end around > .rel.iplt as otherwise we get undefined r

Re: [Qemu-devel] [PATCH] sm501: Fix size of color_reg

2012-01-07 Thread Aurelien Jarno
On Wed, Jan 04, 2012 at 10:50:09PM +0100, Stefan Weil wrote: > color_reg is expected to hold 32 bit values, so it was too small. > > This bug was reported by coverity: > > hw/sm501.c:624: > result_independent_of_operands: > color_reg >> 16 is 0 regardless of the values of its operands. > This occ

[Qemu-devel] [PATCH 2/4] target-i386: fix round{pd, ps, sd, ss} SSE2 instructions

2012-01-07 Thread Aurelien Jarno
roundps and roundss SSE2 instructions have been broken when switching target-i386 to softfloat. They use float64_round_to_int to convert a float32, and while the implicit conversion from float32 to float64 was correct for softfloat-native, it is not for pure softfloat. Fix that by using the correct

Re: [Qemu-devel] [PATCH] memory: Fix assertion for flash devices

2012-01-07 Thread Aurelien Jarno
On Sat, Jan 07, 2012 at 12:13:46PM +0100, Stefan Weil wrote: > There is a regression since commit c5705a7728b4a6bc9e4f2d35911adbaf28042b25 > or some other recent change. > > System emulation with a flash device raises an assertion in function > qemu_ram_set_idstr because no new_block is found at t

[Qemu-devel] [PATCH 3/4] target-i386: fix dpps and dppd SSE2 instructions

2012-01-07 Thread Aurelien Jarno
The helpers implemented dpps and dppd SSE instructions are not passing the correct argument types to the softfloat functions. While they do work anyway providing a correct behaviour, this patch fixes that. Signed-off-by: Aurelien Jarno --- target-i386/ops_sse.h | 28 ++-

Re: [Qemu-devel] [PATCH 1/4] target-i386: fix {min, max}{pd, ps, sd, ss} SSE2 instructions

2012-01-07 Thread Peter Maydell
On 7 January 2012 20:09, Aurelien Jarno wrote: > minpd, minps, minsd, minss and maxpd, maxps, maxsd, maxss SSE2 > instructions have been broken when switching target-i386 to softfloat. > It's not possible to use comparison instructions on float types anymore > to softfloat, so use the floatXX_min

Re: [Qemu-devel] [PATCH] tcg-arm: fix a typo in comments

2012-01-07 Thread Peter Maydell
On 7 January 2012 20:00, Aurelien Jarno wrote: > ARM still doesn't support 16GB buffers in 32-bit modes, replace the > 16GB by 16MB in the comment. > > Signed-off-by: Aurelien Jarno Reviewed-by: Peter Maydell -- PMM

[Qemu-devel] [PATCH] target-sh4: ignore ocbp and ocbwb instructions

2012-01-07 Thread Aurelien Jarno
ocbp and ocbwb controls the writeback of a cache line to memory. They are supposed to do nothing in case of a cache miss. Given QEMU only partially emulate caches, it is safe to ignore these instructions. This fixes a kernel oops when trying to access an rtl8139 NIC with recent versions. Signed-o

[Qemu-devel] [PATCH] sparc-linux-user: Fix missing symbols in .rel/.rela.plt sections

2012-01-07 Thread Aurelien Jarno
Fix .rel.plt sections in the output to not only include .rel.plt sections from the input but also the .rel.iplt sections and to define the hidden symbols __rel_iplt_start and __rel_iplt_end around .rel.iplt as otherwise we get undefined references to these when linking statically to a multiarch ena

[Qemu-devel] [PATCH] ppc-linux-user: Fix missing symbols in .rel/.rela.plt sections

2012-01-07 Thread Aurelien Jarno
Fix .rel.plt sections in the output to not only include .rel.plt sections from the input but also the .rel.iplt sections and to define the hidden symbols __rel_iplt_start and __rel_iplt_end around .rel.iplt as otherwise we get undefined references to these when linking statically to a multiarch ena

[Qemu-devel] [PATCH] PL011: Fix ID reporting

2012-01-07 Thread Marek Vasut
The AMBA IDs are supposed to be at the end of 0x2000 block, which the PL011 UART allocates. Current QEMU implementation puts those IDs at 0x1000 offset, which is wrong. The QEMU implementation also allocates only 0x1000 instead of 0x2000 of space. The fix is tested to work with Linux's PL011 drive

[Qemu-devel] [PATCH 0/4] target-i386: Fix regressions introduced by the switch to softfloat

2012-01-07 Thread Aurelien Jarno
Since commit 347ac8e35661eff1c2b5ec74d11ee152f2a61856 which switched target-i386 to softfloat, a few SSE instructions are not working correctly anymore. It's especially noticeable on linux/x86-64 as SSE is used default for floating point computation. For example GDM from Debian Lenny is not usabl

[Qemu-devel] [PATCH] tcg-arm: fix a typo in comments

2012-01-07 Thread Aurelien Jarno
ARM still doesn't support 16GB buffers in 32-bit modes, replace the 16GB by 16MB in the comment. Signed-off-by: Aurelien Jarno --- exec.c |2 +- tcg/arm/tcg-target.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index b1d6602..7f9f730

Re: [Qemu-devel] [PATCH] target-sh4: Fix operands for fipr, ftrv instructions

2012-01-07 Thread Aurelien Jarno
On Thu, Jan 05, 2012 at 01:11:48PM +0100, Stefan Weil wrote: > Coverity complained about right shifts of opcode (16, 18) which were > larger than the size of opcode (16 bit). > > Using the correct shift values fixes this. > > Cc: Aurelien Jarno > Signed-off-by: Stefan Weil > --- > target-sh4/t

Re: [Qemu-devel] [PATCH 1.0 v2] malta: Fix regression (i8259 interrupts did not work)

2012-01-07 Thread Aurelien Jarno
On Tue, Nov 29, 2011 at 06:34:48AM +0100, Stefan Weil wrote: > Commit 5632ae46d5bda798e971dae48ebb318ac2c3686a passes the address > of i8259 to qemu_irq_proxy. i8259 is an auto variable with undefined > value outside of mips_malta_init. > > This made the interrupt proxy unusable: either QEMU crash

Re: [Qemu-devel] [PATCH 0/2] memory: Fix 'Kill old-style I/O dispatch'

2012-01-07 Thread Aurelien Jarno
On Sat, Jan 07, 2012 at 09:45:13AM +0100, Andreas Färber wrote: > Hello, > > This series fixes endianness issues in the memory core. > Apparently the actual byte swapping had not yet been tested. > > Together with the BIOS MemoryRegion patch and revert of m48t59 I/O base > this restores the PReP

[Qemu-devel] Restarting my activity on QEMU

2012-01-07 Thread Aurelien Jarno
Hi all, Just a few words to tell I totally disappeared from QEMU last summer due to a burn-out. After successfully contributing back to some other projects, I am going to slowly restart my activity on QEMU. I will try to process the pending requests, but it might take some time. Don't hesitate to

Re: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-01-07 Thread Liu, Jinsong
Jan Kiszka wrote: > On 2012-01-05 18:07, Liu, Jinsong wrote: >>> Sorry, it remains bogus to expose the tsc deadline timer feature on >>> machines < pc-1.1. That's just like we introduced kvmclock only to >>> pc-0.14 onward. The reason is that guest OSes so far running on >>> qemu-1.0 or older witho

Re: [Qemu-devel] [Bug] System emulation with flash broken?

2012-01-07 Thread Gerhard Wiesinger
On Fri, 6 Jan 2012, Stefan Weil wrote: Hello Avi, latest QEMU seems to be broken when a system emulation with flash is started. I did not run git bisect, but it looks like the problem started with this change: c5705a7728b4a6bc9e4f2d35911adbaf28042b25 Author: Avi Kivity 2011-12-20 14:59:12

Re: [Qemu-devel] [PATCH] Rename target_phys_addr_t to Phys

2012-01-07 Thread Blue Swirl
On Wed, Jan 4, 2012 at 22:09, Anthony Liguori wrote: > On 01/04/2012 01:50 PM, Peter Maydell wrote: >> >> On 4 January 2012 19:32, Avi Kivity  wrote: >>> >>> The name 'Phys' conveys exactly the same information as >>> 'target_phys_addr_t': >>> >>>  - it has to be a physical address (no such thing

Re: [Qemu-devel] [PATCH 1/2] m48t59: drop obsolete address base arithmetic

2012-01-07 Thread Blue Swirl
On Thu, Jan 5, 2012 at 17:45, Andreas Färber wrote: > Am 15.10.2011 15:50, schrieb Blue Swirl: >> Remove now incorrect address base arithmetic, missed by >> 9936d6e42392f1440505dfa9df065eabd251cadf. Fixes Sparc64 boot. > > ...but breaks PReP boot: > > ERROR: BUG caught... > BIOS execution exceptio

Re: [Qemu-devel] [PATCH v5 9/9] Add XBRLE statistics information

2012-01-07 Thread Blue Swirl
On Tue, Jan 3, 2012 at 15:34, Orit Wasserman wrote: > > Signed-off-by: Orit Wasserman > --- >  arch_init.c |   67 > +++ >  migration.c |   11 + >  migration.h |    9 >  3 files changed, 87 insertions(+), 0 deletions(-) > >

Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE

2012-01-07 Thread Kevin O'Connor
On Sat, Jan 07, 2012 at 10:00:56AM +0100, Gerhard Wiesinger wrote: > On Fri, 6 Jan 2012, Kevin O'Connor wrote: > >I'm not sure what a SCSI rom would do with a CD drive. My guess is > >that it wouldn't map it to a BIOS visible drive id at all, as there's > >no way to select an id with any assurance

Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE

2012-01-07 Thread Kevin O'Connor
On Sat, Jan 07, 2012 at 09:35:55AM +0100, Gerhard Wiesinger wrote: [...] > 5. Legacy option rom > 6. DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD] > 7. iPXE (PCI 00:00.0) > > But there is still the iPXE ROM there (I think I didn't see iPXE > because it is last one displayed and boot screen is fast

Re: [Qemu-devel] [PATCH v4 2/2] hw/integratorcp: Simplify flash remap code

2012-01-07 Thread Peter Maydell
On 7 January 2012 04:40, Andreas Färber wrote: > I noticed you're dropping a comment about tlb_flush(). Is that because > it was dead code, or does the Memory API take care of it for us? > (I assume the former because memory_region_set_enabled() does not take a > CPUState* to operate on.) Arrangi

Re: [Qemu-devel] MMU Modes

2012-01-07 Thread Xin Tong
I am investigating how LW is emulated from target-mips on x86 host. However, i can not find where the OFFSET is passed in. case OPC_LW: save_cpu_state(ctx, 0); op_ld_lw(t0, t0, ctx); gen_store_gpr(t0, rt); opn = "lw"; break; || || \|

[Qemu-devel] [Bug 504368] Re: sdl window intermittently scales instead of resizing

2012-01-07 Thread Prateek Karandikar
I have the same problem too. Anything other than each guest pixel mapping to exactly one host pixel looks bad. There should be a way to ensure that this is always the case (in fact, perhaps it should be the default and there should be a command line switch to allow the possibility of the display be

[Qemu-devel] [PATCH] target-sh4: Fix operands for fipr, ftrv instructions

2012-01-07 Thread Stefan Weil
Coverity complained about right shifts of opcode (16, 18) which were larger than the size of opcode (16 bit). Using the correct shift values fixes this. Cc: Aurelien Jarno Signed-off-by: Stefan Weil --- target-sh4/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) dif

Re: [Qemu-devel] [PATCH 06/12] xhci: Initial xHCI implementation

2012-01-07 Thread Stefan Weil
Am 06.01.2012 14:59, schrieb Gerd Hoffmann: From: Hector Martin Based on the implementation from Hector Martin Hectors's implementation completely sidestepped the qemu usb system and used libusb directly for usb device pass through. So I've ripped out the libusb bits (or left them in disabled

[Qemu-devel] [Bug] System emulation with flash broken?

2012-01-07 Thread Stefan Weil
Hello Avi, latest QEMU seems to be broken when a system emulation with flash is started. I did not run git bisect, but it looks like the problem started with this change: c5705a7728b4a6bc9e4f2d35911adbaf28042b25 Author: Avi Kivity 2011-12-20 14:59:12 vmstate, memory: decouple vmstate from

[Qemu-devel] [PATCH] memory: Fix assertion for flash devices

2012-01-07 Thread Stefan Weil
There is a regression since commit c5705a7728b4a6bc9e4f2d35911adbaf28042b25 or some other recent change. System emulation with a flash device raises an assertion in function qemu_ram_set_idstr because no new_block is found at the requested addr. The address of the memory region (mr->ram_addr) is

[Qemu-devel] [PATCH] sm501: Fix size of color_reg

2012-01-07 Thread Stefan Weil
color_reg is expected to hold 32 bit values, so it was too small. This bug was reported by coverity: hw/sm501.c:624: result_independent_of_operands: color_reg >> 16 is 0 regardless of the values of its operands. This occurs as the bitwise first operand of '&'. Cc: Shin-ichiro Kawasaki Signed-of

[Qemu-devel] [PATCH] configure: Modify detection of supported warning options

2012-01-07 Thread Stefan Weil
Reversing the order of the warning options and -Werror is important when clang is used instead of gcc. It changes nothing for gcc. Signed-off-by: Stefan Weil --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 640e815..93622e7 10075

[Qemu-devel] [PATCH] elf: Improve symbol lookup (optimize, fix for bsd-user)

2012-01-07 Thread Stefan Weil
Coverity complained about local variable key which was only partially initiated. Only key.st_value was set. As this was also the only part of key which was used in function symfind, the code could be optimized by directly passing a pointer to orig_addr. In bsd-user/elfload.c, fix ec822001a2f26eef8

Re: [Qemu-devel] [RFC] QEMU Code Audit Team

2012-01-07 Thread Stefan Weil
Am 06.01.2012 17:01, schrieb Stefan Hajnoczi: On Fri, Jan 06, 2012 at 09:19:45AM -0600, Anthony Liguori wrote: Would folks be interested in participating in something like this? If so, I can start organizing it. I enjoy bug hunting and would volunteer. Stefan So do I. Stefan

[Qemu-devel] [PATCH] slirp: Remove unused variable and unused code

2012-01-07 Thread Stefan Weil
9634d9031c140b24c7ca0d8872632207f6ce7275 disabled unused code. This patch removes what was left. If do_pty is 2, the function returns immediately, so any later checks for do_pty == 2 will always fail and can be removed together with the code which is never executed. Then variable master is unused

Re: [Qemu-devel] [PATCH] Rename target_phys_addr_t to Phys

2012-01-07 Thread Stefan Weil
Am 05.01.2012 01:24, schrieb Peter Maydell: On 5 January 2012 00:16, Anthony Liguori wrote: On 01/04/2012 05:33 PM, Peter Maydell wrote: A lot of the usage of target_phys_addr_t in hw/ is actually not handling addresses at all, but merely offsets into device IO regions (ie as parameters to dev

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

2012-01-07 Thread Stefan Weil
Am 04.01.2012 15:47, schrieb Michael S. Tsirkin: On Wed, Jan 04, 2012 at 04:28:42PM +0200, Avi Kivity wrote: Commit d0ed8076cbdc261 converted the PCI config access to the memory API, but also inadvertantly changed it to accept unaligned writes, and corrupt the index register in the process. This

[Qemu-devel] [PATCH] omap_dss: correct chip[1] index in RFBI_READ/RFBI_STATUS

2012-01-07 Thread Stefan Hajnoczi
The RFBI_READ/RFBI_STATUS code incorrectly uses chip[0] when it should be using chip[1]. Andrzej Zaborowski confirmed this bug since I don't know this code well. Reported-by: Dr David Alan Gilbert Signed-off-by: Stefan Hajnoczi --- hw/omap_dss.c |4 ++-- 1 files changed, 2 insertions(+),

Re: [Qemu-devel] [RFC] QEMU Code Audit Team

2012-01-07 Thread Stefan Hajnoczi
On Sat, Jan 7, 2012 at 3:09 AM, Peter Maydell wrote: > On 6 January 2012 20:42, Anthony Liguori wrote: >> On 01/06/2012 02:02 PM, Andreas Färber wrote: >>> i) Unless it's a build fix, I propose defining a minimum review time >>> before a patch is applied to a (sub)maintainer's queue. > >> I disag

Re: [Qemu-devel] [PATCH 5/5] arm: SoC model for Calxeda Highbank

2012-01-07 Thread Andreas Färber
Am 07.01.2012 10:55, schrieb Igor Mitsyanko: > On 06.01.2012 11:11 PM, Andreas Färber wrote: >> Am 06.01.2012 20:10, schrieb Igor Mitsyanko: >>> On 01/06/2012 10:45 PM, Peter Maydell wrote: On 6 January 2012 18:37, Igor Mitsyanko wrote: > On 01/06/2012 12:02 AM, Mark Langsdorf wrote: >>>

Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE

2012-01-07 Thread Gerhard Wiesinger
On Fri, 6 Jan 2012, Kevin O'Connor wrote: I'm not sure what a SCSI rom would do with a CD drive. My guess is that it wouldn't map it to a BIOS visible drive id at all, as there's no way to select an id with any assurance that it wont conflict with one chosen by the BIOS or another rom. If QEMU

Re: [Qemu-devel] [PATCH 5/5] arm: SoC model for Calxeda Highbank

2012-01-07 Thread Igor Mitsyanko
On 06.01.2012 11:11 PM, Andreas Färber wrote: Am 06.01.2012 20:10, schrieb Igor Mitsyanko: On 01/06/2012 10:45 PM, Peter Maydell wrote: On 6 January 2012 18:37, Igor Mitsyanko wrote: On 01/06/2012 12:02 AM, Mark Langsdorf wrote: +if (!cpu_model) { +cpu_model = "cortex-a9"; +

[Qemu-devel] [PATCH 0/2] memory: Fix 'Kill old-style I/O dispatch'

2012-01-07 Thread Andreas Färber
Hello, This series fixes endianness issues in the memory core. Apparently the actual byte swapping had not yet been tested. Together with the BIOS MemoryRegion patch and revert of m48t59 I/O base this restores the PReP machine to previous behavior. Regards, Andreas Cc: Avi Kivity Cc: Anthony L

[Qemu-devel] [PATCH 2/2] memory: Fix adjust_endianness()

2012-01-07 Thread Andreas Färber
Commit a621f38de85598a13d8d8524d1a94fc6a1818215 (Direct dispatch through MemoryRegion) moved byte swaps to a central function. Add a missing break, so that long-sized byte swaps don't abort. Signed-off-by: Andreas Färber Cc: Avi Kivity --- memory.c |1 + 1 files changed, 1 insertions(+), 0

[Qemu-devel] [PATCH 1/2] memory: Fix memory_region_wrong_endianness()

2012-01-07 Thread Andreas Färber
Since commit be675c972088eba210e18dc125613e9f205a6bfb (memory: move endianness compensation to memory core) it was checking for TARGET_BIG_ENDIAN instead of TARGET_WORDS_BIGENDIAN, thereby not swapping correctly for Big Endian targets. Signed-off-by: Andreas Färber Cc: Avi Kivity --- memory.c |

Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE

2012-01-07 Thread Gerhard Wiesinger
On Thu, 5 Jan 2012, Kevin O'Connor wrote: On Thu, Jan 05, 2012 at 11:20:37AM +0200, Gleb Natapov wrote: On Thu, Jan 05, 2012 at 10:09:44AM +0100, Gerhard Wiesinger wrote: But as far as I remember therefore the option ROM registers through BIOS for INT 19h booting. So Seabios should know it tha