Re: [Qemu-devel] Re: EFI console stopped working in Qemu 0.14.0

2011-03-06 Thread vagran
When I trying to specify 64-bit EFI BIOS nothing happens on VGA nor serial console. It seems that CPU is continuously restarting. Build and host system is Ubuntu 9.10: Linux AST-mobile 2.6.31-22-generic-pae #73-Ubuntu SMP Fri Feb 11 18:39:01 UTC 2011 i686 GNU/Linux Qemu 0.14.0 was built with

Re: [Qemu-devel] Qemu support on android

2011-03-06 Thread Dushyant Bansal
On Saturday 05 March 2011 04:30 PM, Mahesh Shivhare wrote: Hi all, Is there any way by which we can run qemu on android-x86 OS.does qemu needs any modification to run on android-x86 I'm trying to build QEMU with --static option but when m trying to run on android it's getting stuck with the

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-06 Thread Alon Levy
On Sat, Mar 05, 2011 at 01:35:58PM -0300, Marcelo Tosatti wrote: On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: at /var/tmp/portage/app-emulation/qemu-kvm-0.14.0/work/qemu-kvm-0.14.0/qemu-kvm.c:1466 #12 0x777bb944 in start_thread () from /lib/libpthread.so.0

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-06 Thread Avi Kivity
On 03/05/2011 06:35 PM, Marcelo Tosatti wrote: Regarding global mutex, TCG and KVM execution behaviour can become more similar wrt locking by dropping qemu_global_mutex during generation and execution of TBs. How can you do that? During generation, a device can assert the reset line,

Re: [Qemu-devel] [PATCH v20 0/7] usb-ccid

2011-03-06 Thread Alon Levy
Ping. On Wed, Feb 23, 2011 at 01:20:17PM +0200, Alon Levy wrote: This patchset adds three new devices, usb-ccid, ccid-card-passthru and ccid-card-emulated, providing a CCID bus, a simple passthru protocol implementing card requiring a client, and a standalone emulated card. It also

Re: [Qemu-devel] Qemu support on android

2011-03-06 Thread Andreas Färber
Hi, Am 05.03.2011 um 12:00 schrieb Mahesh Shivhare: I'm trying to build QEMU with --static option but when m trying to run on android it's getting stuck with the message VNC srver running on 127.0.0.1:' Check configure output. Maybe the SDL headers were not available when

[Qemu-devel] [Bug 638955] Re: emulated netcards don't work with recent sunos kernel

2011-03-06 Thread Stefan Hajnoczi
Please test this patch: http://repo.or.cz/w/qemu/stefanha.git/commitdiff/c405d1b66e045bce1c53a30f9ad840c6f19eca57 QEMU loads checksum offload flags from every tx data descriptor. When a multi-descriptor packet is sent, Solaris will only mark the first descriptor with checksum offload flags.

[Qemu-devel] [PATCH] WIN32: Add missing include for 'struct timeval', used in vnc.h

2011-03-06 Thread Herve Poussineau
From: Herv� Poussineau hpous...@reactos.org Signed-off-by: Herv� Poussineau hpous...@reactos.org --- qemu-common.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu-common.h b/qemu-common.h index 40dad52..18e648f 100644 --- a/qemu-common.h +++ b/qemu-common.h @@

Re: [Qemu-devel] [PATCH] WIN32: Add missing include for 'struct timeval', used in vnc.h

2011-03-06 Thread Blue Swirl
Thanks, applied. On Sun, Mar 6, 2011 at 3:23 PM, Herve Poussineau hpous...@reactos.org wrote: From: Hervé Poussineau hpous...@reactos.org Signed-off-by: Hervé Poussineau hpous...@reactos.org ---  qemu-common.h |    1 +  1 files changed, 1 insertions(+), 0 deletions(-) diff --git

Re: [Qemu-devel] [PATCH] WIN32: Add missing include for 'struct timeval', used in vnc.h

2011-03-06 Thread Roy Tam
Hi, 2011/3/6 Herve Poussineau hpous...@reactos.org: FYI: [PATCH 1/3] w32: Add new directory hierarchy for MinGW extensions http://www.mail-archive.com/qemu-devel@nongnu.org/msg56858.html [PATCH 2/3] w32: Add macro timersub to sys/time.h

[Qemu-devel] [PATCH v2] ioport: Improve error output

2011-03-06 Thread Andreas Färber
When failing due to conflicting I/O port registrations, include the offending I/O port address in the message. Cc: Aurelien Jarno aurel...@aurel32.net Signed-off-by: Andreas Färber andreas.faer...@web.de --- v2: * Use for address 0x%x wording, as suggested by Aurelien. ioport.c |6 --

[Qemu-devel] [PATCH] i8254: Fix migration from older versions

2011-03-06 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com qdev conversion broke migration as the previous version used vmstate instance IDs derived from the iobase. Fix it by registering a legacy alias. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/i8254.c |2 ++ 1 files changed, 2 insertions(+), 0

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Jan Kiszka
On 2011-02-13 22:10, Blue Swirl wrote: Convert to qdev. Don't expose PITState. ... diff --git a/hw/pc.h b/hw/pc.h index 60f8c42..feb8a7a 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -82,14 +82,23 @@ void isa_irq_handler(void *opaque, int n, int level); #define PIT_FREQ 1193182 -typedef

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-06 Thread Michal Suchanek
Hello On 6 March 2011 05:12, Jordan Justen jljus...@gmail.com wrote: I know you already have your own ideas to think of. :) http://wiki.qemu.org/Google_Summer_of_Code_2011 But, I am wondering if any of you might have some UEFI or OVMF ideas for us:

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Blue Swirl
On Sun, Mar 6, 2011 at 5:10 PM, Jan Kiszka jan.kis...@web.de wrote: On 2011-02-13 22:10, Blue Swirl wrote: Convert to qdev. Don't expose PITState. ... diff --git a/hw/pc.h b/hw/pc.h index 60f8c42..feb8a7a 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -82,14 +82,23 @@ void isa_irq_handler(void

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Jan Kiszka
On 2011-03-06 16:35, Blue Swirl wrote: On Sun, Mar 6, 2011 at 5:10 PM, Jan Kiszka jan.kis...@web.de wrote: On 2011-02-13 22:10, Blue Swirl wrote: Convert to qdev. Don't expose PITState. ... diff --git a/hw/pc.h b/hw/pc.h index 60f8c42..feb8a7a 100644 --- a/hw/pc.h +++ b/hw/pc.h @@

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Blue Swirl
On Sun, Mar 6, 2011 at 5:39 PM, Jan Kiszka jan.kis...@web.de wrote: On 2011-03-06 16:35, Blue Swirl wrote: On Sun, Mar 6, 2011 at 5:10 PM, Jan Kiszka jan.kis...@web.de wrote: On 2011-02-13 22:10, Blue Swirl wrote: Convert to qdev. Don't expose PITState. ... diff --git a/hw/pc.h b/hw/pc.h

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Jan Kiszka
On 2011-03-06 17:06, Blue Swirl wrote: On Sun, Mar 6, 2011 at 5:39 PM, Jan Kiszka jan.kis...@web.de wrote: On 2011-03-06 16:35, Blue Swirl wrote: On Sun, Mar 6, 2011 at 5:10 PM, Jan Kiszka jan.kis...@web.de wrote: On 2011-02-13 22:10, Blue Swirl wrote: Convert to qdev. Don't expose PITState.

Re: [Qemu-devel] [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Anthony Liguori
On 02/13/2011 03:10 PM, Blue Swirl wrote: Convert to qdev. Don't expose PITState. Signed-off-by: Blue Swirlblauwir...@gmail.com --- hw/i8254.c | 61 +-- hw/mips_fulong2e.c |4 +- hw/mips_jazz.c |4 +- hw/mips_malta.c

Re: [Qemu-devel] [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Blue Swirl
On Sun, Mar 6, 2011 at 6:31 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 02/13/2011 03:10 PM, Blue Swirl wrote: Convert to qdev. Don't expose PITState. Signed-off-by: Blue Swirlblauwir...@gmail.com ---  hw/i8254.c         |   61 +--  

[Qemu-devel] [PATCH] e1000: Fix multi-descriptor packet checksum offload

2011-03-06 Thread Stefan Hajnoczi
The PCI/PCI-X Family of Gigabit Ethernet Controllers Software Developer’s Manual states the following about the POPTS field: Provides a number of options which control the handling of this packet. This field is ignored except on the first data descriptor of a packet. The current

Re: [Qemu-devel] [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Blue Swirl
On Sun, Mar 6, 2011 at 6:47 PM, Blue Swirl blauwir...@gmail.com wrote: On Sun, Mar 6, 2011 at 6:31 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 02/13/2011 03:10 PM, Blue Swirl wrote: Convert to qdev. Don't expose PITState. Signed-off-by: Blue Swirlblauwir...@gmail.com ---  

Re: [Qemu-devel] [PATCH] lsi53c895a: Update dnad when skipping MSGOUT bytes

2011-03-06 Thread Aurelien Jarno
On Wed, Jan 26, 2011 at 12:31:00PM +, Stefan Hajnoczi wrote: Update not only dbc but also dnad when skipping bytes during the MSGOUT phase. Previously only dbc was updated which is probably wrong and could lead to bogus message codes being read. Tested on Linux and Windows Server 2003.

Re: [Qemu-devel] [PATCH 6/8] kvm: consume internal signal with sigtimedwait

2011-03-06 Thread Andreas Färber
Hello, Am 22.02.2010 um 22:26 schrieb Marcelo Tosatti: Change the way the internal qemu signal, used for communication between iothread and vcpus, is handled. Block and consume it with sigtimedwait on the outer vcpu loop, which allows more precise timing control. Mac OS X v10.5 does not

Re: [Qemu-devel] [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Anthony Liguori
On 03/06/2011 10:47 AM, Blue Swirl wrote: The PIT is not an ISA device. Modelling it as such is worse than leaving it unmodelled. No. These days, PIT is part of Super I/O chip, which is accessed via LPC bus. LPC is from software point of view equal to ISA. Therefore, in absence of LPC,

Re: [Qemu-devel] [PATCH] use correct initial region_offset

2011-03-06 Thread Aurelien Jarno
On Thu, Jan 27, 2011 at 01:01:01PM +0200, Alex Rozenman wrote: Hi, I found a bug in phys_page_find_alloc function causing initial region_offset field to be set to incorrect initial value. Usually, the pages are re-assigned afterwards, so the bug has very small effect on regular QEMU users.

Re: [Qemu-devel] [PATCH 0/5] Fix MMC card detection for Realview boards

2011-03-06 Thread Aurelien Jarno
On Mon, Feb 21, 2011 at 08:57:48PM +, Peter Maydell wrote: This patchset fixes a number of problems which were preventing Linux on Realview boards (EB926, EB 11MPCore, PB-A8 and PBX) from recognising the presence of an MMC card. Basically the PL181 needs to export some output pins for card

Re: [Qemu-devel] [PATCH] simpletrace: Make simpletrace.py a Python module

2011-03-06 Thread Aurelien Jarno
On Tue, Feb 22, 2011 at 01:59:41PM +, Stefan Hajnoczi wrote: The simpletrace.py script pretty-prints a binary trace file. Most of the code can be reused by trace file analysis scripts, so turn it into a module. Here is an example script that uses the new simpletrace module:

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Jan Kiszka
On 2011-03-06 18:47, Anthony Liguori wrote: On 03/06/2011 10:47 AM, Blue Swirl wrote: The PIT is not an ISA device. Modelling it as such is worse than leaving it unmodelled. No. These days, PIT is part of Super I/O chip, which is accessed via LPC bus. LPC is from software point of

Re: [Qemu-devel] [PATCH] linux-user: Fix large seeks by 32 bit guest on 64 bit host

2011-03-06 Thread Aurelien Jarno
On Tue, Feb 22, 2011 at 01:02:26PM +, Peter Maydell wrote: When emulating a 32 bit Linux user-mode program on a 64 bit target we implement the llseek syscall in terms of lseek. Correct a bug which meant we were silently casting the result of host lseek() to a 32 bit integer as it passed

Re: [Qemu-devel] [PATCH] docs: Update stderr and simple backend, add systemtap backend

2011-03-06 Thread Aurelien Jarno
On Wed, Feb 23, 2011 at 02:00:21PM +, Stefan Hajnoczi wrote: The following additions to the tracing documentation are included: 1. Move stderr backend documentation to top-level and out of simple backend. Include hints on when this backend is useful. 2. Document the simple backend

Re: [Qemu-devel] [PATCH 0/3] tcg: Support debugging leakage of temporaries

2011-03-06 Thread Aurelien Jarno
On Wed, Feb 23, 2011 at 03:19:33PM +, Peter Maydell wrote: This patchset removes the ad-hoc debug code in target-arm for identifying cases where we leaked TCG temporary variables, in favour of an implementation in tcg itself. Generally any temporaries created by a target while it is

Re: [Qemu-devel] [PATCH 2/2 V1] Fixed EPROM for AMD driver compatibility under DOS with Netware driver

2011-03-06 Thread Andreas Färber
Am 05.03.2011 um 13:48 schrieb Gerhard Wiesinger: For newbies for documentation how to submit a qemu patch made of several commits (updated for necessary signoff): # Last commit before patch git branch pcnet-amd-fix 1899e4afdc2d838be5625539df9c87cca49bdd70 git checkout pcnet-amd-fix # Or

Re: [Qemu-devel] [PATCH] net: Use iov helper functions

2011-03-06 Thread Aurelien Jarno
On Wed, Feb 23, 2011 at 07:57:21PM -0500, Benjamin Poirier wrote: Signed-off-by: Benjamin Poirier benjamin.poir...@gmail.com --- net.c | 28 ++-- 1 files changed, 6 insertions(+), 22 deletions(-) Thanks, applied. diff --git a/net.c b/net.c index ec4745d..15ed40b

[Qemu-devel] [PATCH] Implement qemu_kvm_eat_signals only for CONFIG_LINUX

2011-03-06 Thread Jan Kiszka
On 2011-03-06 18:46, Andreas Färber wrote: Hello, Am 22.02.2010 um 22:26 schrieb Marcelo Tosatti: Change the way the internal qemu signal, used for communication between iothread and vcpus, is handled. Block and consume it with sigtimedwait on the outer vcpu loop, which allows more

Re: [Qemu-devel] [PATCH] net: remove parse_host_src_port() function

2011-03-06 Thread Aurelien Jarno
On Thu, Feb 24, 2011 at 12:22:10PM +0100, Juan Quintela wrote: It was deprecated, and it has no users. Signed-off-by: Juan Quintela quint...@redhat.com --- net.c | 41 - qemu_socket.h |3 --- 2 files changed, 0 insertions(+), 44

Re: [Qemu-devel] [PATCH 0/3] Remove wrong savevm sections

2011-03-06 Thread Aurelien Jarno
On Thu, Feb 24, 2011 at 03:17:13PM +0100, Juan Quintela wrote: Hi This devices savevm support is Not Even Wrong. Just remove it. It has never work for sure. Anthony, please apply. Later, Juan. Juan Quintela (3): vmstate: remove grackle_pci savevm code vmstate: remove uninorth

Re: [Qemu-devel] [PATCH] net: Add the missing option declaration of vhostforce

2011-03-06 Thread Aurelien Jarno
On Fri, Feb 25, 2011 at 04:11:27PM +0800, Jason Wang wrote: Signed-off-by: Jason Wang jasow...@redhat.com --- net.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/net.c b/net.c index 9ba5be2..21d4443 100644 --- a/net.c +++ b/net.c @@ -1025,7 +1025,11 @@

Re: [Qemu-devel] [PATCH] target-arm: Don't decode old cp15 WFI instructions on v7 cores

2011-03-06 Thread Aurelien Jarno
On Fri, Feb 25, 2011 at 03:04:12PM +, Peter Maydell wrote: In v7 of the ARM architecture, WFI (wait for interrupt) is a first-class instruction, but in previous versions this functionality was provided via a cp15 coprocessor register. Add correct feature checks to the decoding of the cp15

Re: [Qemu-devel] [PATCH] w32: Add support for curses

2011-03-06 Thread Aurelien Jarno
On Sun, Feb 27, 2011 at 08:23:30PM +0100, Stefan Weil wrote: MinGW optionally includes pdcurses, so add support for it. Signed-off-by: Stefan Weil w...@mail.berlios.de --- configure |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) Thanks, applied. diff --git a/configure

Re: [Qemu-devel] [PATCH] WIN32: Add missing include for 'struct timeval', used in vnc.h

2011-03-06 Thread Stefan Weil
Am 06.03.2011 15:24, schrieb Roy Tam: Hi, 2011/3/6 Herve Poussineauhpous...@reactos.org: FYI: [PATCH 1/3] w32: Add new directory hierarchy for MinGW extensions http://www.mail-archive.com/qemu-devel@nongnu.org/msg56858.html [PATCH 2/3] w32: Add macro timersub to sys/time.h

Re: [Qemu-devel] [PATCH v5] PING: Fix ATA SMART and CHECK POWER MODE

2011-03-06 Thread Aurelien Jarno
You should Cc: the IDE maintainer (Kevin Wolf) so that this patch can get acked. Done with this mail. On Tue, Mar 01, 2011 at 08:30:23AM -0500, Brian Wheeler wrote: This patch fixes two things: 1) CHECK POWER MODE The error return value wasn't always zero, so it would show up as

Re: [Qemu-devel] Re: EFI console stopped working in Qemu 0.14.0

2011-03-06 Thread vagran
Hey, can you tell me about $PHOBOS_PREFIX/share/qemu/phobos64? Does it have an alternative vgabios-cirrus.bin? Is the contents of this directory available publicly? I have followed the instructions How to run OVMF. This directory has the contents of OVMF package - OVMF.fd and

[Qemu-devel] [PATCH] moving eeprom initialization

2011-03-06 Thread William Dauchy
The initialization should not be only on reset but also when initializing the device. It resolves a bug when hot plugging a pci network device: the mac address was always null. Signed-off-by: William Dauchy wdau...@gmail.com Signed-off-by: Wen Congyang we...@cn.fujitsu.com --- hw/pcnet.c |

Re: [Qemu-devel] [PATCH 0/3] tcg: Support debugging leakage of temporaries

2011-03-06 Thread Peter Maydell
On 6 March 2011 18:18, Aurelien Jarno aurel...@aurel32.net wrote: On Wed, Feb 23, 2011 at 03:19:33PM +, Peter Maydell wrote: This patchset removes the ad-hoc debug code in target-arm for identifying cases where we leaked TCG temporary variables, in favour of an implementation in tcg

Re: [Qemu-devel] [PATCH 2/3] w32: Add macro timersub to sys/time.h

2011-03-06 Thread Stefan Weil
Am 05.03.2011 10:34, schrieb Blue Swirl: On Sun, Feb 27, 2011 at 7:52 PM, Stefan Weil w...@mail.berlios.de wrote: timersub is needed by the latest vnc code. Signed-off-by: Stefan Weil w...@mail.berlios.de --- hosts/w32/include/sys/time.h | 24 1 files changed, 24

[Qemu-devel] [PATCH v3 3/3] target-arm: Use TCG temporary leak debugging facilities

2011-03-06 Thread Peter Maydell
Use the new TCG temporary leak debugging facilities to check that each ARM instruction does not leak temporaries. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/translate.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/target-arm/translate.c

[Qemu-devel] [PATCH v2 0/3] tcg: Support debugging leakage of temporaries

2011-03-06 Thread Peter Maydell
This patchset removes the ad-hoc debug code in target-arm for identifying cases where we leaked TCG temporary variables, in favour of an implementation in tcg itself. Generally any temporaries created by a target while it is translating an instruction should be freed by the end of that

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Blue Swirl
On Sun, Mar 6, 2011 at 10:45 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 03/06/2011 12:06 PM, Jan Kiszka wrote: In the system we model, the PIT is part of the PIIX3.  The right way to model it is as a DeviceState that's no_user=1 and created as part of the initialized of PIIX3 (for

[Qemu-devel] Re: [PATCH v2] target-arm: Set carry flag correctly for Thumb2 ORNS

2011-03-06 Thread Aurelien Jarno
On Sun, Mar 06, 2011 at 08:32:09PM +, Peter Maydell wrote: The code for Thumb2 ORNS (or negated and set flags) was trashing a TCG input register which was needed later for use in calculating flags, with the effect that the carry flag was always set with the wrong sense. Fix this by using

Re: [Qemu-devel] [PATCH] WIN32: Add missing include for 'struct timeval', used in vnc.h

2011-03-06 Thread Stefan Weil
Am 06.03.2011 21:25, schrieb Blue Swirl: On Sun, Mar 6, 2011 at 9:24 PM, Stefan Weilw...@mail.berlios.de wrote: Am 06.03.2011 15:24, schrieb Roy Tam: Hi, 2011/3/6 Herve Poussineauhpous...@reactos.org: FYI: [PATCH 1/3] w32: Add new directory hierarchy for MinGW extensions

Re: [Qemu-devel] [PATCH] target-arm: Handle VMOV between two core and VFP single regs

2011-03-06 Thread Aurelien Jarno
On Tue, Mar 01, 2011 at 05:35:19PM +, Peter Maydell wrote: Fix two bugs in the translation of the instructions VMOV sa,sb,rx,ry and VMOV rx,ry,sa,sb (which copy between a pair of ARM core registers and a pair of VFP single precision registers): * An incorrect condition meant these

Re: [Qemu-devel] [PATCH 00/17 v3] LatticeMico32 target

2011-03-06 Thread Michael Walle
Am Dienstag 01 März 2011, 22:31:58 schrieb Edgar E. Iglesias: On Fri, Feb 25, 2011 at 12:03:37AM +0100, Michael Walle wrote: Am Donnerstag 17 Februar 2011, 23:45:01 schrieb Michael Walle: This patchset adds support for the LatticeMico32 softcore processor by Lattice Semiconductor.

Re: [Qemu-devel] [PATCH] target-arm: Set carry flag correctly for Thumb2 ORNS

2011-03-06 Thread Aurelien Jarno
On Wed, Mar 02, 2011 at 05:34:08PM +, Peter Maydell wrote: The code for Thumb2 ORNS (or negated and set flags) was trashing a TCG input register which was needed later for use in calculating flags, with the effect that the carry flag was always set with the wrong sense. Fix this by using a

Re: [Qemu-devel] [PATCH v3] tracetool: Add optional argument to specify dtrace probe names

2011-03-06 Thread Aurelien Jarno
On Thu, Feb 17, 2011 at 01:26:05PM +0100, jes.soren...@redhat.com wrote: From: Jes Sorensen jes.soren...@redhat.com Optional feature allowing a user to generate the probe list to match the name of the binary, in case they wish to install qemu under a different name than

[Qemu-devel] [PATCH v2 1/3] tcg: Add support for debugging leakage of temporaries

2011-03-06 Thread Peter Maydell
Add support (if CONFIG_DEBUG_TCG is defined) for debugging leakage of temporary variables. Generally any temporaries created by a target while it is translating an instruction should be freed by the end of that instruction; otherwise carefully crafted guest code could cause TCG to run out of

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-06 Thread Jordan Justen
On Sun, Mar 6, 2011 at 07:29, Michal Suchanek hramr...@centrum.cz wrote: On 6 March 2011 05:12, Jordan Justen jljus...@gmail.com wrote: I know you already have your own ideas to think of. :) http://wiki.qemu.org/Google_Summer_of_Code_2011 But, I am wondering if any of you might have some UEFI

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Anthony Liguori
On 03/06/2011 12:06 PM, Jan Kiszka wrote: In the system we model, the PIT is part of the PIIX3. The right way to model it is as a DeviceState that's no_user=1 and created as part of the initialized of PIIX3 (for the PC at least). LPC is still an expansion bus and it's primarily used for

[Qemu-devel] QAPI Merge Plans

2011-03-06 Thread Anthony Liguori
Hi, I've gotten my QAPI branch now functionally complete so I'm ready to start working on merging. I thought I'd send a note about my plans as both a heads up and to see if anyone had any suggestions. My plan is to split everything up into three rounds. The first round will just be core

[Qemu-devel] [PATCH] moving eeprom initialization

2011-03-06 Thread William Dauchy
The initialization should not be only on reset but also when initializing the device. It resolves a bug when hot plugging a pci network device: the mac address was always null. Signed-off-by: William Dauchy wdau...@gmail.com Signed-off-by: Wen Congyang we...@cn.fujitsu.com --- hw/pcnet.c |

Re: [Qemu-devel] [PATCH] moving eeprom initialization

2011-03-06 Thread Gerhard Wiesinger
Hello, AMD fix is now upstream. Please merge it. Thnx. Ciao, Gerhard -- http://www.wiesinger.com/ On Sun, 6 Mar 2011, William Dauchy wrote: The initialization should not be only on reset but also when initializing the device. It resolves a bug when hot plugging a pci network device: the

Re: [Qemu-devel] [PATCH] moving eeprom initialization

2011-03-06 Thread William Dauchy
On Sun, Mar 6, 2011 at 9:38 PM, Gerhard Wiesinger li...@wiesinger.com wrote: AMD fix is now upstream. Please merge it. oh sorry. did not see; will do. -- William

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Jan Kiszka
On 2011-03-06 21:45, Anthony Liguori wrote: On 03/06/2011 12:06 PM, Jan Kiszka wrote: In the system we model, the PIT is part of the PIIX3. The right way to model it is as a DeviceState that's no_user=1 and created as part of the initialized of PIIX3 (for the PC at least). LPC is still an

[Qemu-devel] [PATCH v2] target-arm: Set carry flag correctly for Thumb2 ORNS

2011-03-06 Thread Peter Maydell
The code for Thumb2 ORNS (or negated and set flags) was trashing a TCG input register which was needed later for use in calculating flags, with the effect that the carry flag was always set with the wrong sense. Fix this by using the TCG orc op instead of separate not and or ops. Signed-off-by:

Re: [Qemu-devel] [PATCH] WIN32: Add missing include for 'struct timeval', used in vnc.h

2011-03-06 Thread Blue Swirl
On Sun, Mar 6, 2011 at 9:24 PM, Stefan Weil w...@mail.berlios.de wrote: Am 06.03.2011 15:24, schrieb Roy Tam: Hi, 2011/3/6 Herve Poussineauhpous...@reactos.org: FYI: [PATCH 1/3] w32: Add new directory hierarchy for MinGW extensions

Re: [Qemu-devel] [PATCH v2] ioport: Improve error output

2011-03-06 Thread Aurelien Jarno
On Sun, Mar 06, 2011 at 03:48:13PM +0100, Andreas Färber wrote: When failing due to conflicting I/O port registrations, include the offending I/O port address in the message. Cc: Aurelien Jarno aurel...@aurel32.net Signed-off-by: Andreas Färber andreas.faer...@web.de --- v2: * Use for

Re: [Qemu-devel] Re: EFI console stopped working in Qemu 0.14.0

2011-03-06 Thread Jordan Justen
On Sun, Mar 6, 2011 at 13:26, vagran vagran@gmail.com wrote: Can you try disabling KVM? Yes, it helped. Problem exists only when using KVM. Thanks. One thing I suspect is that the kernel side of kvm had an issue around this time (Ubuntu 9.10) with a bios.bin larger than 256kb. With qemu

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-06 Thread Anthony Liguori
On 03/06/2011 03:18 PM, Jan Kiszka wrote: It's far from academic as this is user-visible and visible via the command line. I thought it was stated before that there is no guarantee on the internal structure of our device tree as the user may explore it (as long as it's stable for the

[Qemu-devel] [PATCH v5 02/10] softfloat: Resolve type mismatches between declaration and implementation

2011-03-06 Thread Andreas Färber
The original SoftFloat 2.0b library avoided the use of custom integer types in its public headers. This requires the definitions of int{8,16,32,64} to match the assumptions in the declarations. This breaks on BeOS R5 and Haiku/x86, where int32 is defined in {be,os}/support/SupportDefs.h in terms

[Qemu-devel] Re: [PATCH 03/15] kvm: Install optimized interrupt handlers

2011-03-06 Thread Marcelo Tosatti
On Sat, Mar 05, 2011 at 07:11:53PM +0100, Jan Kiszka wrote: On 2011-03-05 16:37, Marcelo Tosatti wrote: On Fri, Mar 04, 2011 at 11:20:00AM +0100, Jan Kiszka wrote: KVM only requires to set the raised IRQ in CPUState and, if the user space irqchip is used, to kick the receiving vcpu if it is

[Qemu-devel] [PATCH v5 05/10] softfloat: Use [u]int_fast16_t consistently

2011-03-06 Thread Andreas Färber
Adapt float{32,64}_to_uint16_round_to_zero(). v5: * Reworded. v3: * Split off. Use uint_fast16_t rather than uint16_t. v2: * Initial. Cc: Peter Maydell peter.mayd...@linaro.org Cc: Nathan Froyd froy...@codesourcery.com Signed-off-by: Andreas Färber andreas.faer...@web.de --- fpu/softfloat.c |

[Qemu-devel] [PATCH v5 09/10] softfloat: Drop [u]int64 types in favor of [u]int_fast64_t

2011-03-06 Thread Andreas Färber
v5: * Initial. Cc: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Andreas Färber andreas.faer...@web.de --- fpu/softfloat.c | 48 fpu/softfloat.h | 34 -- 2 files changed, 40 insertions(+), 42

[Qemu-devel] [PATCH v5 01/10] [RESEND] softfloat: Prepend QEMU-style header with derivation notice

2011-03-06 Thread Andreas Färber
The SoftFloat license requires prominent notice that the work is derivative. Having added features like improved 16-bit support for arm already, add such a notice to the sources. softfloat-native.[ch] are not under the SoftFloat license and thus are not changed. v4: Initial. Cc: Peter Maydell

[Qemu-devel] [PATCH v5 07/10] softfloat: Drop [u]int32 types in favor of [u]int_fast32_t

2011-03-06 Thread Andreas Färber
v5: * Initial. Cc: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Andreas Färber andreas.faer...@web.de --- fpu/softfloat.c | 132 +++--- fpu/softfloat.h | 34 +++ 2 files changed, 82 insertions(+), 84 deletions(-) diff --git

[Qemu-devel] [PATCH v5 06/10] softfloat: Drop [u]int8 types in favor of int_fast8_t

2011-03-06 Thread Andreas Färber
v5: * Initial. Cc: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Andreas Färber andreas.faer...@web.de --- fpu/softfloat-macros.h | 26 +- fpu/softfloat-specialize.h |2 +- fpu/softfloat.c| 62 ++--

[Qemu-devel] [PATCH v5 08/10] softfloat: Use [u]int_fast32_t consistently

2011-03-06 Thread Andreas Färber
v5: * Initial. Signed-off-by: Andreas Färber andreas.faer...@web.de --- fpu/softfloat-native.c | 42 +- fpu/softfloat-native.h | 32 fpu/softfloat.c| 12 ++-- fpu/softfloat.h|4 ++-- 4

[Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t

2011-03-06 Thread Andreas Färber
AIX already didn't use our definition, so let's start ripping out this one: As pointed out by Peter Maydell, int16 is currently int on most supported platforms, so let's replace it with int_fast16_t, allowing the system to use a wider type if appropriate. Note that Darwin uses [u]int16_t now,

[Qemu-devel] [PATCH 03/22] qapi: add Error object

2011-03-06 Thread Anthony Liguori
The Error class is similar to QError (now deprecated) except that it supports propagation. This allows for higher quality error handling. It's losely modeled after glib style GErrors. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/Makefile.objs b/Makefile.objs index

[Qemu-devel] [PATCH 15/22] qapi: add new QMP server that uses CharDriverState

2011-03-06 Thread Anthony Liguori
This will replace the current QMP server once all the functions are implemented. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/qmp-core.c b/qmp-core.c index 3a6242c..3a4d240 100644 --- a/qmp-core.c +++ b/qmp-core.c @@ -44,6 +44,15 @@ struct QmpState QTAILQ_HEAD(,

[Qemu-devel] [PATCH 12/22] qapi: add QAPI module type

2011-03-06 Thread Anthony Liguori
This lets us register marshaling handlers using a module init function. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/module.h b/module.h index 9263f1c..ef66730 100644 --- a/module.h +++ b/module.h @@ -24,12 +24,14 @@ typedef enum { MODULE_INIT_BLOCK,

[Qemu-devel] [PATCH 07/22] json: propagate error from parser

2011-03-06 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/json-parser.c b/json-parser.c index 6c06ef9..ac4063a 100644 --- a/json-parser.c +++ b/json-parser.c @@ -22,9 +22,11 @@ #include qbool.h #include json-parser.h #include json-lexer.h +#include qerror.h typedef struct

[Qemu-devel] [PATCH 06/22] qapi: add JSON parsing error message

2011-03-06 Thread Anthony Liguori
Using a string like this is a cop-out. I plan on changing this before 0.15. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/qerror.c b/qerror.c index 5a1e637..c12dd3d 100644 --- a/qerror.c +++ b/qerror.c @@ -145,6 +145,10 @@ static const QErrorStringTable qerror_table[] = {

[Qemu-devel] [PATCH 14/22] qapi: add query-version QMP command

2011-03-06 Thread Anthony Liguori
This is used internally by QMP. It's also a pretty good example of a typical command conversion. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/Makefile.objs b/Makefile.objs index 5dae800..e1a2756 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -103,7 +103,7 @@ common-obj-y

[Qemu-devel] [PATCH 11/22] qapi: add signal support to core QMP server

2011-03-06 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/qmp-core.c b/qmp-core.c index 78aef3a..3a6242c 100644 --- a/qmp-core.c +++ b/qmp-core.c @@ -28,6 +28,22 @@ typedef struct QmpCommand QTAILQ_ENTRY(QmpCommand) node; } QmpCommand; +typedef struct DefaultQmpConnection +{ +

[Qemu-devel] [PATCH 13/22] qapi: add code generators for QMP command marshaling

2011-03-06 Thread Anthony Liguori
This generates qmp.h which contains the declarations of all of QMP functions to be dispatched, plus a function that registers marshallers for each of the QMP functions. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/Makefile b/Makefile index 8f3a4d3..47a755d 100644 ---

[Qemu-devel] [PATCH 17/22] qapi: add QMP quit command

2011-03-06 Thread Anthony Liguori
This is needed by the test suite. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/qmp-schema.json b/qmp-schema.json index b343f5e..0581e67 100644 --- a/qmp-schema.json +++ b/qmp-schema.json @@ -36,3 +36,15 @@ # Since: 0.14.0 ## [ 'query-version', {}, {}, 'VersionInfo' ] + +##

[Qemu-devel] [PATCH 16/22] vl: add a new -qmp2 option to expose experimental QMP server

2011-03-06 Thread Anthony Liguori
This is temporary until we implement all QMP commands. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/qemu-options.hx b/qemu-options.hx index badb730..957d935 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1881,6 +1881,9 @@ serial port). The default device is @code{vc}

[Qemu-devel] [PATCH 19/22] qapi: add QMP put-event command

2011-03-06 Thread Anthony Liguori
This is needed for libqmp to support events. put-event is used to disconnect from signals. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/qmp-schema.json b/qmp-schema.json index 3f2dd4e..a13885f 100644 --- a/qmp-schema.json +++ b/qmp-schema.json @@ -58,3 +58,18 @@ # Since:

[Qemu-devel] [PATCH 18/22] qapi: add QMP qmp_capabilities command

2011-03-06 Thread Anthony Liguori
For now, it's a nop. In the near future, it will be used to register default signals. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/qmp-core.c b/qmp-core.c index 3a4d240..72e4fea 100644 --- a/qmp-core.c +++ b/qmp-core.c @@ -393,3 +393,7 @@ void qmp_init_chardev(CharDriverState

[Qemu-devel] [PATCH 04/22] qerror: split out the reporting bits of QError

2011-03-06 Thread Anthony Liguori
These make it very hard to compile QError outside of QEMU. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/Makefile.objs b/Makefile.objs index da31530..69f0383 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -2,7 +2,7 @@ # QObject qobject-obj-y = qint.o qstring.o qdict.o

[Qemu-devel] [PATCH 21/22] qapi: add test-libqmp

2011-03-06 Thread Anthony Liguori
This provides a glib-test based testing framework for QMP Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/Makefile b/Makefile index 5170675..1d363d7 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,8 @@ defconfig: -include config-all-devices.mak +TOOLS += test-libqmp +

[Qemu-devel] [PATCH 02/22] qerror: expose a function to format an error

2011-03-06 Thread Anthony Liguori
This will let Error share the QError human formatting. This is only used for HMP. Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/qerror.c b/qerror.c index 4855604..13d53c9 100644 --- a/qerror.c +++ b/qerror.c @@ -326,12 +326,18 @@ QError *qerror_from_info(const char *file, int

[Qemu-devel] [PATCH 20/22] qapi: add code generator for libqmp

2011-03-06 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/Makefile b/Makefile index 47a755d..5170675 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ GENERATED_HEADERS = config-host.h trace.h qemu-options.def ifeq ($(TRACE_BACKEND),dtrace) GENERATED_HEADERS += trace-dtrace.h endif

[Qemu-devel] [PATCH 00/22] QAPI Round 1

2011-03-06 Thread Anthony Liguori
This is the first round of QAPI. This lays all the basic ground work for QAPI including a client library, new server, and new signal/slot mechanism. The QAPI development branch contains conversions of every 0.14 QMP command and also converts all possible HMP commands to use the QMP versions of

[Qemu-devel] [PATCH] qapi: qmp-types.c and qmp-types.h

2011-03-06 Thread Anthony Liguori
These are generated type functions. This file will not be committed but is included to help review. diff --git a/qmp-types.c b/qmp-types.c new file mode 100644 index 000..3162265 --- /dev/null +++ b/qmp-types.c @@ -0,0 +1,22 @@ +/* THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT */ +

[Qemu-devel] [PATCH 22/22] qapi: generate HTML report for test-libqmp

2011-03-06 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com diff --git a/Makefile b/Makefile index 1d363d7..c5a4820 100644 --- a/Makefile +++ b/Makefile @@ -216,6 +216,15 @@ LIBQMP_OBJS += $(oslib-obj-y) $(trace-obj-y) qemu-malloc.o test-libqmp: test-libqmp.o $(LIBQMP_OBJS) qemu-timer-common.o

[Qemu-devel] [PATCH 08/22] qapi: add code generator for qmp-types

2011-03-06 Thread Anthony Liguori
Only generate qmp-types.[ch]. These files contain the type definitions for QMP along with the alloc/free functions for these types. Functions to convert enum values to integers and vice versa are also included. qmp-types is used both within QEMU and within libqmp Special alloc/free functions

[Qemu-devel] [PATCH 01/22] Add hard build dependency on glib

2011-03-06 Thread Anthony Liguori
GLib is an extremely common library that has a portable thread implementation along with tons of other goodies. GLib and GObject have a fantastic amount of infrastructure we can leverage in QEMU including an object oriented programming infrastructure. Short term, it has a very nice thread pool

[Qemu-devel] limitations of DEF_HELPER

2011-03-06 Thread felix.matenaar@rwth-aachen
Hello *, modifying target-i386/translate.c for calling helper functions when specific arithmetic operations are executed. Example: static void gen_shift(DisasContext *s1, int op, int ot, int d, int s, target_ulong pc_start) { if (s != OR_TMP1) gen_op_mov_TN_reg(ot, 1, s);

[Qemu-devel] [PATCH] qapi: qmp-marshal-types.c and qmp-marshal-types.h

2011-03-06 Thread Anthony Liguori
This is not to be committed. diff --git a/qmp-marshal-types.c b/qmp-marshal-types.c new file mode 100644 index 000..c3ab141 --- /dev/null +++ b/qmp-marshal-types.c @@ -0,0 +1,77 @@ +/* THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT */ + +#include qmp-marshal-types.h +#include qerror.h + +

  1   2   >