Re: [Qemu-devel] [PATCH v2] Don't allow multiwrites against a block device without underlying medium

2011-03-30 Thread Markus Armbruster
I think this (commit 301db7c2) should be cherry-picked into stable-0.14. Ryan Harper ry...@us.ibm.com writes: If the block device has been closed, we no longer have a medium to submit IO against, check for this before submitting io. This prevents a segfault further in the code where we

Re: [Qemu-devel] [PATCH v4] Do not delete BlockDriverState when deleting the drive

2011-03-30 Thread Markus Armbruster
[Cc: Justin, because I feel it should go into stable-0.14 as well] Ryan Harper ry...@us.ibm.com writes: When removing a drive from the host-side via drive_del we currently have the following path: drive_del qemu_aio_flush() bdrv_close()// zaps bs-drv, which makes any subsequent I/O get

Re: [Qemu-devel] A question about QEMU on unix

2011-03-30 Thread Jes Sorensen
On 03/29/11 12:55, Bin (Bin) Shi wrote: Can QEMU run on QNX ? My machine is Cpu - arm11 Os - qnx6.5 Does QEMU support my machine ? Hi, Do you mean if QEMU can emulate ARM11 and boot QNX that way, or do you want to run QEMU on a QNX box? I don't think QEMU has been ported to QNX,

Re: [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in QEMUMachine struct

2011-03-30 Thread Jes Sorensen
On 03/29/11 16:08, Peter Maydell wrote: This primary aim of this patchset is to add a new 'max_ram' field to the QEMUMachine structure so that a board model can specify the maximum RAM it will accept. We can then produce a friendly diagnostic message when the user tries to start qemu with a

RE: [Qemu-devel] [PATCH 1/3] unicore32: add target-unicore32 directory for unicore32-linux-user support

2011-03-30 Thread Guan Xuetao
-Original Message- From: Blue Swirl [mailto:blauwir...@gmail.com] Sent: Saturday, March 26, 2011 8:51 PM To: Guan Xuetao Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] [PATCH 1/3] unicore32: add target-unicore32 directory for unicore32-linux-user support On Thu, Mar 24,

RE: [Qemu-devel] A question about QEMU on unix

2011-03-30 Thread Bin (Bin) Shi
I want to run QEMU on a QNX box, to emulate an android system. -Original Message- From: Jes Sorensen [mailto:jes.soren...@redhat.com] Sent: Wednesday, March 30, 2011 3:41 PM To: Bin (Bin) Shi Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] A question about QEMU on unix On 03/29/11

Re: [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in QEMUMachine struct

2011-03-30 Thread Peter Maydell
On 30 March 2011 08:48, Jes Sorensen jes.soren...@redhat.com wrote: On 03/29/11 16:08, Peter Maydell wrote: This primary aim of this patchset is to add a new 'max_ram' field to the QEMUMachine structure so that a board model can specify the maximum RAM it will accept. I am a little concerned

[Qemu-devel] [PATCHv2 0/3] unicore32: add unicore32-linux-user support for qemu 0.14

2011-03-30 Thread Guan Xuetao
The patch set adds new unicore32-linux-user support for qemu-stable-0.14 Patch 1 adds target-unicore32 directory Patch 2 adds linux-user/unicore32 directory Patch 3 adds necessary modifications for other files V1 - V2: changed by advice from Blue Swirl Guan Xuetao (3): unicore32:

[Qemu-devel] [PATCHv2 2/3] unicore32: add necessry headers in linux-user/unicore32 for unicore32 support

2011-03-30 Thread Guan Xuetao
Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- linux-user/unicore32/syscall.h | 55 + linux-user/unicore32/syscall_nr.h| 371 ++ linux-user/unicore32/target_signal.h | 26 +++ linux-user/unicore32/termbits.h |2 + 4 files changed,

Re: [Qemu-devel] GSoC: Improved image format compatibility

2011-03-30 Thread Stefan Hajnoczi
On Wed, Mar 30, 2011 at 5:50 AM, Stefan Weil w...@mail.berlios.de wrote: Am 29.03.2011 23:55, schrieb Lyu Mitnick: Hello all, I have used QEMU to assist me developing embedded system for 3 years. And I want to contribute to QEMU and participate Google Summer of Code this year. I have port

Re: [Qemu-devel] [PATCH v2 0/3] block: Correct size across CD-ROM media change

2011-03-30 Thread Markus Armbruster
Stefan Hajnoczi stefa...@linux.vnet.ibm.com writes: This patch series fixes two Linux host CD-ROM pass-through bugs in QEMU. After applying these patches it is possible to pass-through a Linux host CD-ROM completely. The guest can eject from software or the physical eject button can be

[Qemu-devel] [PATCHv2 3/3] unicore32: necessary modifications for other files to support unicore32

2011-03-30 Thread Guan Xuetao
Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- configure| 11 +++- cpu-exec.c | 12 - default-configs/unicore32-linux-user.mak |1 + elf.h|2 + fpu/softfloat-specialize.h

[Qemu-devel] Re: virtio-blk.c handling of i/o which is not a 512 multiple

2011-03-30 Thread Stefan Hajnoczi
On Wed, Mar 30, 2011 at 9:15 AM, Conor Murphy conor_murphy_v...@hotmail.com wrote: I'm trying to write a virtio-blk driver for Solaris. I've gotten it to the point where Solaris can see the device and create a ZFS file system on it. However when I try and create a UFS filesystem on the

Re: [Qemu-devel] [PATCH] net: Improve the warnings for dubious command line option combinations

2011-03-30 Thread Peter Maydell
Ping? It would be nice if this could be committed, it's blocking the versatile express support patch. thanks -- PMM On 22 March 2011 18:39, Peter Maydell peter.mayd...@linaro.org wrote: Improve the warnings we give if the user specified a combination of -net options which don't make much

Re: [Qemu-devel] [PATCH repost] qemu-img: Initial progress printing support

2011-03-30 Thread Stefan Hajnoczi
On Tue, Mar 29, 2011 at 9:51 AM, jes.soren...@redhat.com wrote: diff --git a/qemu-common.h b/qemu-common.h index 7a96dd1..a3a4dde 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -330,6 +330,11 @@ void qemu_iovec_memset(QEMUIOVector *qiov, int c, size_t count);  void

Re: [Qemu-devel] [PATCH v2 0/3] block: Correct size across CD-ROM media change

2011-03-30 Thread Stefan Hajnoczi
On Wed, Mar 30, 2011 at 9:33 AM, Markus Armbruster arm...@redhat.com wrote: Stefan Hajnoczi stefa...@linux.vnet.ibm.com writes: This patch series fixes two Linux host CD-ROM pass-through bugs in QEMU. After applying these patches it is possible to pass-through a Linux host CD-ROM

[Qemu-devel] Re: [PATCH 00/19] s390x emulation support

2011-03-30 Thread Peter Maydell
On 29 March 2011 14:29, Alexander Graf ag...@suse.de wrote: We've had support for running s390x guests with KVM for a while now. This patch set also enables support for running s390x guests in system as well as linux-user mode in emulation! Is there an available ISA manual you can add a wiki

[Qemu-devel] Re: [PATCH 00/19] s390x emulation support

2011-03-30 Thread Alexander Graf
On 30.03.2011, at 12:23, Peter Maydell wrote: On 29 March 2011 14:29, Alexander Graf ag...@suse.de wrote: We've had support for running s390x guests with KVM for a while now. This patch set also enables support for running s390x guests in system as well as linux-user mode in emulation! Is

Re: [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in QEMUMachine struct

2011-03-30 Thread Jes Sorensen
On 03/30/11 10:09, Peter Maydell wrote: On 30 March 2011 08:48, Jes Sorensen jes.soren...@redhat.com wrote: I am a little concerned about this approach. It should work for simple embedded boards, but for larger systems, it really ought to be a mask rather than a max address. It's not a

[Qemu-devel] Re: [PATCH V12 00/17] Xen device model support

2011-03-30 Thread Alexander Graf
On 29.03.2011, at 20:27, anthony.per...@citrix.com wrote: From: Anthony PERARD anthony.per...@citrix.com Hi all, Here is the few change made since the v11: - All objects built for each target are now build only for i386 targets. - The compatibility macros have been replaced by static

[Qemu-devel] [PATCH 3/3] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-03-30 Thread Dmitry Eremin-Solenikov
Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 +

[Qemu-devel] [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-03-30 Thread Dmitry Eremin-Solenikov
Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. Implemented: - IRQs - GPIO - PPC - RTC - UARTs (no IrDA/etc.) - OST reused from pxa25x Everything else is TODO (esp. PM/idle/sleep!) - see the todo in the hw/strongarm.c V2: * removed all strongarm variants except latest

[Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-30 Thread Dmitry Eremin-Solenikov
Currently target-arm/ assumes at least ARMv5 core. Add support for handling also ARMv4/ARMv4T. This changes the following instructions: BX(v4T and later) BKPT, BLX, CDP2, CLZ, LDC2, LDRD, MCRR, MCRR2, MRRC, MCRR, MRC2, MRRC, MRRC2, PLD QADD, QDADD, QDSUB, QSUB, STRD, SMLAxy, SMLALxy, SMLAWxy,

Re: [Qemu-devel] [PATCH repost] qemu-img: Initial progress printing support

2011-03-30 Thread Jes Sorensen
On 03/30/11 11:50, Stefan Hajnoczi wrote: On Tue, Mar 29, 2011 at 9:51 AM, jes.soren...@redhat.com wrote: diff --git a/qemu-common.h b/qemu-common.h index 7a96dd1..a3a4dde 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -330,6 +330,11 @@ void qemu_iovec_memset(QEMUIOVector *qiov, int c,

[Qemu-devel] [PATCH] trivial: fix comment around qdev_init_nofail()

2011-03-30 Thread Michael Tokarev
in previous life qdev_init_nofail() used to call hw_error() which did register dump and other scary things. Now it calls error_report() and does a regular exit(1). Fix the comment to match reality. Signed-off-by: Michael Tokarev m...@tls.msk.ru --- hw/qdev.c |2 +- 1 files changed, 1

[Qemu-devel] [PATCH v2] qemu-img: Initial progress printing support

2011-03-30 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This adds the basic infrastructure for supporting progress output on the command line, as well as progress support for qemu-img commands 'rebase' and 'convert'. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- Makefile.objs|2 +-

Re: [Qemu-devel] [PATCH v2] qemu-img: Initial progress printing support

2011-03-30 Thread Stefan Hajnoczi
On Wed, Mar 30, 2011 at 1:16 PM, jes.soren...@redhat.com wrote: From: Jes Sorensen jes.soren...@redhat.com This adds the basic infrastructure for supporting progress output on the command line, as well as progress support for qemu-img commands 'rebase' and 'convert'. Signed-off-by: Jes

[Qemu-devel] [PATCH] exit if -drive specified is invalid instead of ignoring the wrong -drive

2011-03-30 Thread Michael Tokarev
This fixes the problem when qemu continues even if -drive specification is somehow invalid, resulting in a mess. Applicable for both current master and for stable-0.14 (and the same issue exist 0.13 and 0.12 too). The prob can actually be seriuos: when you start guest with two drives and make an

Re: [Qemu-devel] [PATCH] exit if -drive specified is invalid instead of ignoring the wrong -drive

2011-03-30 Thread Jes Sorensen
On 03/30/11 14:31, Michael Tokarev wrote: This fixes the problem when qemu continues even if -drive specification is somehow invalid, resulting in a mess. Applicable for both current master and for stable-0.14 (and the same issue exist 0.13 and 0.12 too). The prob can actually be seriuos:

Re: [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in QEMUMachine struct

2011-03-30 Thread Peter Maydell
On 30 March 2011 11:51, Jes Sorensen jes.soren...@redhat.com wrote: On 03/30/11 10:09, Peter Maydell wrote: On 30 March 2011 08:48, Jes Sorensen jes.soren...@redhat.com wrote: I am a little concerned about this approach. It should work for simple embedded boards, but for larger systems, it

Re: [Qemu-devel] [PATCH] exit if -drive specified is invalid instead of ignoring the wrong -drive

2011-03-30 Thread Michael Tokarev
30.03.2011 17:08, Jes Sorensen wrote: On 03/30/11 14:31, Michael Tokarev wrote: This fixes the problem when qemu continues even if -drive specification is somehow invalid, resulting in a mess. Applicable for both current master and for stable-0.14 (and the same issue exist 0.13 and 0.12 too).

Re: [Qemu-devel] [PATCH] exit if -drive specified is invalid instead of ignoring the wrong -drive

2011-03-30 Thread Jes Sorensen
On 03/30/11 15:22, Michael Tokarev wrote: 30.03.2011 17:08, Jes Sorensen wrote: On 03/30/11 14:31, Michael Tokarev wrote: This fixes the problem when qemu continues even if -drive specification is somehow invalid, resulting in a mess. Applicable for both current master and for

Re: [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in QEMUMachine struct

2011-03-30 Thread Anthony Liguori
On 03/30/2011 08:22 AM, Peter Maydell wrote: On 30 March 2011 11:51, Jes Sorensenjes.soren...@redhat.com wrote: On 03/30/11 10:09, Peter Maydell wrote: On 30 March 2011 08:48, Jes Sorensenjes.soren...@redhat.com wrote: I am a little concerned about this approach. It should work for simple

Re: [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in QEMUMachine struct

2011-03-30 Thread Jes Sorensen
On 03/30/11 15:22, Peter Maydell wrote: On 30 March 2011 11:51, Jes Sorensen jes.soren...@redhat.com wrote: Ideally I think it would be better to have a mask and then introduce a is_valid_memory() kinda function to check it with. I'm not sure what this mask would look like. You want

Re: [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in QEMUMachine struct

2011-03-30 Thread Peter Maydell
On 30 March 2011 14:56, Anthony Liguori anth...@codemonkey.ws wrote: On 03/30/2011 08:22 AM, Peter Maydell wrote: Not really, typically they're just filled up in some particular order (main RAM in one place and expansion RAM elsewhere). Since the board init function is only passed a single

Re: [Qemu-devel] [PATCH] v3 revamp acpitable parsing and allow to specify complete (headerful) table

2011-03-30 Thread Gleb Natapov
On Tue, Mar 29, 2011 at 10:41:11PM +0400, Michael Tokarev wrote: [Cc'ing Gleb since he - it seems - wrote the original code] 17.03.2011 13:00, Michael Tokarev wrote: This patch almost rewrites acpi_table_add() function (but still leaves it using old get_param_value() interface). The

[Qemu-devel] Re: [PATCH 00/19] s390x emulation support

2011-03-30 Thread Peter Maydell
On 30 March 2011 11:46, Alexander Graf ag...@suse.de wrote: On 30.03.2011, at 12:23, Peter Maydell wrote: Is there an available ISA manual you can add a wiki link to? http://wiki.qemu.org/Documentation/ISAManuals (That page is a bit bare at the moment, I know...) Oh, nice page! Didn't know

Re: [Qemu-devel] [PATCH 3/3] vhost: roll our own cpu map variant

2011-03-30 Thread Michael S. Tsirkin
On Tue, Mar 29, 2011 at 11:53:54AM +0100, Stefan Hajnoczi wrote: On Mon, Mar 28, 2011 at 10:14 PM, Michael S. Tsirkin m...@redhat.com wrote: vhost used cpu_physical_memory_map to get the virtual address for the ring, however, this will exit on an illegal RAM address. Since the addresses

Re: [Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-30 Thread Peter Maydell
On 30 March 2011 12:41, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: @@ -7172,10 +7210,7 @@ static void disas_arm_insn(CPUState * env, DisasContext *s)             }             if (insn (1 20)) {                 /* Complete the load.  */ -                if (rd == 15) -          

Re: [Qemu-devel] [PATCH 3/3] vhost: roll our own cpu map variant

2011-03-30 Thread Stefan Hajnoczi
On Wed, Mar 30, 2011 at 5:09 PM, Michael S. Tsirkin m...@redhat.com wrote: On Tue, Mar 29, 2011 at 11:53:54AM +0100, Stefan Hajnoczi wrote: On Mon, Mar 28, 2011 at 10:14 PM, Michael S. Tsirkin m...@redhat.com wrote: vhost used cpu_physical_memory_map to get the virtual address for the ring,

Re: [Qemu-devel] MIPS64 user mode emulation Patch

2011-03-30 Thread Nathan Froyd
On Sat, Mar 26, 2011 at 11:58:37AM +0500, Khansa Butt wrote: Subject: [PATCH] MIPS64 user mode emulation in QEMU This patch adds support for Cavium Network's Octeon 57XX user mode instructions. Octeon 57xx is based on MIPS64. So this patch is the first MIPS64 User Mode Emulation in QEMU

[Qemu-devel] CD-ROM bug round-up

2011-03-30 Thread Stefan Hajnoczi
Several of us have been investigating CD-ROM bugs. Let's update each other, make sure we're not duplicating effort, and see if we can help each other make progress. = Stefan = Guests do not notice media change when using Linux host CD-ROM pass-through for two reasons: 1. QEMU is caching the

Re: [Qemu-devel] CD-ROM bug round-up

2011-03-30 Thread Gleb Natapov
On Wed, Mar 30, 2011 at 05:40:40PM +0100, Stefan Hajnoczi wrote: Several of us have been investigating CD-ROM bugs. Let's update each other, make sure we're not duplicating effort, and see if we can help each other make progress. = Stefan = Guests do not notice media change when using

Re: [Qemu-devel] [PATCH 3/3] vhost: roll our own cpu map variant

2011-03-30 Thread Michael S. Tsirkin
On Wed, Mar 30, 2011 at 05:26:22PM +0100, Stefan Hajnoczi wrote: On Wed, Mar 30, 2011 at 5:09 PM, Michael S. Tsirkin m...@redhat.com wrote: On Tue, Mar 29, 2011 at 11:53:54AM +0100, Stefan Hajnoczi wrote: On Mon, Mar 28, 2011 at 10:14 PM, Michael S. Tsirkin m...@redhat.com wrote: vhost

[Qemu-devel] [PATCH V1 0/8] Add TPM support to SeaBIOS

2011-03-30 Thread Stefan Berger
The following set of patches add TPM and Trusted Computing support to SeaBIOS. In particular the patches add: - a TPM driver for the Qemu's TPM TIS emulation (not yet in Qemu git) - ACPI support for the TPM device (SSDT table) - ACPI support for measurement logging (TCPA table) - Support for

[Qemu-devel] [PATCH V1 4/8] Build the TCG BIOS extensions and TPM drivers.

2011-03-30 Thread Stefan Berger
This patch allows to configure the TCGBIOS extensions to be built into SeaBIOS, depending on not COREBOOT being selected. All TCG BIOS extensions are activated with CONFIG_TCGBIOS. Add the two new code files (tcgbios.c, tpm_drivers.c) to be built. Signed-off-by: Stefan Berger

[Qemu-devel] [PATCH V1 5/8] Support for BIOS interrupt handler

2011-03-30 Thread Stefan Berger
This patch implements the TCG BIOS interrupt handler 1ah. It is for example used by trusted grub. This patch adds an implementation of SHA1 (following NIST specs., IETF RFC 3147 and Wikipedia) for speeding up measurements of code. Trusted Grub for example makes use of this interface and measures

[Qemu-devel] [PATCH V1 1/8] Add an implementation for a TPM TIS driver

2011-03-30 Thread Stefan Berger
This patch adds an implementation of a TPM TIS driver for the TPM TIS emulation supported by Qemu (patches posted, not in git yet). Usage of the driver is broken up into several functions. The driver is cleanly separated from the rest of the code through an interface holding pointers to the

[Qemu-devel] [PATCH V1 7/8] Add a menu for TPM control

2011-03-30 Thread Stefan Berger
This patch provides an addtional menu entry that enables the user to control certain aspects of the TPM. If a working TPM has been detected, the top level BIOS menu will look like this: Press F12 for boot menu. Press F11 to TPM menu. Upon pressing F11 the TPM menu will be shown: 1. Enable TPM

[Qemu-devel] [PATCH V1 3/8] Implementation of the TCG BIOS extensions

2011-03-30 Thread Stefan Berger
This patch implements the main part of the TCG BIOS extensions. It provides the following functionality: - initialization of the TCPA ACPI table used for logging of measurements - initialization of the TPM by sending a sequence of commands to it - proper setup of the TPM once the BIOS hands over

[Qemu-devel] [PATCH V1 6/8] Add measurement code to the BIOS

2011-03-30 Thread Stefan Berger
This patch adds invocactions of functions that measure various parts of the code and data through various parts of the BIOS code. It follows TCG specifications on what needs to be measured. It also adds the implementation of the called functions. Reference for what needs to be measured can be

[Qemu-devel] [PATCH V1 8/8] Optional tests for the TIS interface

2011-03-30 Thread Stefan Berger
This patch adds an optional test suite (CONFIG_TIS_TEST) for the TIS interface to SeaBIOS. If compiled into the BIOS, it can be invoked through the TPM-specific menu item 8. 1. Enable TPM 2. Disable TPM 3. Activate TPM 4. Deactivate TPM 5. Clear ownership 6. Allow installation of owner 7. Prevent

Re: [Qemu-devel] [PATCH 3/3] vhost: roll our own cpu map variant

2011-03-30 Thread Stefan Hajnoczi
On Wed, Mar 30, 2011 at 5:59 PM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Mar 30, 2011 at 05:26:22PM +0100, Stefan Hajnoczi wrote: On Wed, Mar 30, 2011 at 5:09 PM, Michael S. Tsirkin m...@redhat.com wrote: On Tue, Mar 29, 2011 at 11:53:54AM +0100, Stefan Hajnoczi wrote: On Mon, Mar

Re: [Qemu-devel] CD-ROM bug round-up

2011-03-30 Thread Stefan Hajnoczi
On Wed, Mar 30, 2011 at 5:50 PM, Gleb Natapov g...@redhat.com wrote: On Wed, Mar 30, 2011 at 05:40:40PM +0100, Stefan Hajnoczi wrote: = Anthony = Using 'change' or scripted commands without a delay between closing the BlockDriverState and opening the new CD-ROM.  The guest does not have a

Re: [Qemu-devel] [PATCH] v3 revamp acpitable parsing and allow to specify complete (headerful) table

2011-03-30 Thread Michael Tokarev
30.03.2011 18:26, Gleb Natapov wrote: On Tue, Mar 29, 2011 at 10:41:11PM +0400, Michael Tokarev wrote: [Cc'ing Gleb since he - it seems - wrote the original code] Thank you for looking into this. 17.03.2011 13:00, Michael Tokarev wrote: This patch almost rewrites acpi_table_add() function

[Qemu-devel] [PATCH V1 2/8] Provide ACPI SSDT table for TPM device + S3 resume support

2011-03-30 Thread Stefan Berger
This patch provides ACPI support for the TPM device. It probes for the TPM device and only if a TPM device is found then the TPM's SSDT and TCPA table are created. This patch also connects them to the RSDT. Since the logging area in the TCPA table requires 64kb, the memory reserved for ACPI

Re: [Qemu-devel] [PATCH 1/7] target-arm: Make Neon helper routines use correct FP status

2011-03-30 Thread Nathan Froyd
On Mon, Mar 28, 2011 at 03:15:08PM +0100, Peter Maydell wrote: On 14 March 2011 05:35, Nathan Froyd froy...@codesourcery.com wrote: Oh, right.  I am ambivalent as to whether passing env to such functions is the right thing to do or not. So did this amount to a request for a change to this

Re: [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal

2011-03-30 Thread Peter Maydell
On 15 March 2011 11:56, Gleb Natapov g...@redhat.com wrote: Currently when rogue script kills QEMU process (using TERM/INT/HUP signal) it looks indistinguishable from system shutdown. Lets report that QEMU was killed and leave some clues about the killer identity. Unfortunately this patch

Re: [Qemu-devel] GSoC: Improved image format compatibility

2011-03-30 Thread Lyu Mitnick
Hello Stefan, I have spent a whole night to trace the code of block/vpc.c and compare against the VHD specifications (at http://www.microsoft.com/downloads/en/details.aspx?FamilyID=C2D03242-2FFB-48EF-A211-F0C44741109Eamp;displaylang=en ). It seems that there isn't Fixed hard disk image and

[Qemu-devel] virtio-blk.c handling of i/o which is not a 512 multiple

2011-03-30 Thread Conor Murphy
Hi, I'm trying to write a virtio-blk driver for Solaris. I've gotten it to the point where Solaris can see the device and create a ZFS file system on it. However when I try and create a UFS filesystem on the device, the VM crashed with the error *** glibc detected *** /usr/bin/qemu-kvm: double

Re: [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal

2011-03-30 Thread Gleb Natapov
On Wed, Mar 30, 2011 at 07:39:31PM +0100, Peter Maydell wrote: On 15 March 2011 11:56, Gleb Natapov g...@redhat.com wrote: Currently when rogue script kills QEMU process (using TERM/INT/HUP signal) it looks indistinguishable from system shutdown. Lets report that QEMU was killed and leave

Re: [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal

2011-03-30 Thread Anthony Liguori
On 03/30/2011 01:39 PM, Peter Maydell wrote: On 15 March 2011 11:56, Gleb Natapovg...@redhat.com wrote: Currently when rogue script kills QEMU process (using TERM/INT/HUP signal) it looks indistinguishable from system shutdown. Lets report that QEMU was killed and leave some clues about the

Re: [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal

2011-03-30 Thread Gleb Natapov
On Wed, Mar 30, 2011 at 01:49:10PM -0500, Anthony Liguori wrote: On 03/30/2011 01:39 PM, Peter Maydell wrote: On 15 March 2011 11:56, Gleb Natapovg...@redhat.com wrote: Currently when rogue script kills QEMU process (using TERM/INT/HUP signal) it looks indistinguishable from system shutdown.

Re: [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal

2011-03-30 Thread Peter Maydell
On 30 March 2011 19:43, Gleb Natapov g...@redhat.com wrote: On Wed, Mar 30, 2011 at 07:39:31PM +0100, Peter Maydell wrote: Unfortunately this patch causes qemu to segfault when killed via ^C (at least on my Ubuntu maverick system). This is because it registers a signal handler with sigaction,

Re: [Qemu-devel] virtio-blk.c handling of i/o which is not a 512 multiple

2011-03-30 Thread Christoph Hellwig
On Wed, Mar 30, 2011 at 08:48:18AM +, Conor Murphy wrote: Is there a requirement for virtio-blk guest drivers that all i/o requests are sized in multiples of 512 bytes? Yes, like for any other block driver. Of course this should not actually crash qemu, but rather fail the request. Does

Re: [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal

2011-03-30 Thread Gleb Natapov
On Wed, Mar 30, 2011 at 07:53:41PM +0100, Peter Maydell wrote: On 30 March 2011 19:43, Gleb Natapov g...@redhat.com wrote: On Wed, Mar 30, 2011 at 07:39:31PM +0100, Peter Maydell wrote: Unfortunately this patch causes qemu to segfault when killed via ^C (at least on my Ubuntu maverick

Re: [Qemu-devel] GSoC: Improved image format compatibility

2011-03-30 Thread Stefan Weil
Am 30.03.2011 20:40, schrieb Lyu Mitnick: Hello Stefan, I have spent a whole night to trace the code of block/vpc.c and compare against the VHD specifications (at http://www.microsoft.com/downloads/en/details.aspx?FamilyID=C2D03242-2FFB-48EF-A211-F0C44741109Eamp;displaylang=en

[Qemu-devel] [PATCH] Don't limit node count by smp count

2011-03-30 Thread Sasha Levin
It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- vl.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 8bcf2ae..8cc1aa8 100644 --- a/vl.c +++

Re: [Qemu-devel] [PATCH] Don't limit node count by smp count

2011-03-30 Thread Anthony Liguori
On 03/30/2011 02:14 PM, Sasha Levin wrote: It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs. But does this actually work in the code today and does it work with any guests? Regards, Anthony Liguori Signed-off-by: Sasha

Re: [Qemu-devel] GSoC: Improved image format compatibility

2011-03-30 Thread Lyu Mitnick
Hello Stefan, Let me summarize the ideas of Improved image format compatibility now: (1) add support of Fixed hard disk image into block/vpc.c (2) add support of Differencing hard disk image into block/vpc.c (3) add asynchronous i/o into block/vpc,c (4) have some optimization of block/vpc.c

[Qemu-devel] [PATCH V2 3/9] Add persistent state handling to TPM TIS frontend driver

2011-03-30 Thread Stefan Berger
This patch adds support for handling of persisten state to the TPM TIS frontend. The currently used buffer is determined (can only be in currently active locality and either be a read or a write buffer) and only that buffer's content is stored. The reverse is done when the state is restored from

[Qemu-devel] [PATCH V2 5/9] Add a debug register

2011-03-30 Thread Stefan Berger
This patch uses the possibility to add a vendor-specific register and adds a debug register useful for dumping the internal state. This register is only active in a debug build (#define DEBUG_TIS). Signed-off-by: Stefan Berger stef...@linux.vnet.ibm.com --- hw/tpm_tis.c | 67

[Qemu-devel] [PATCH V2 1/9] Support for TPM command line options

2011-03-30 Thread Stefan Berger
This patch adds support for TPM command line options. The command line supported here (considering the libtpms based backend) are ./qemu-... -tpm type=type,path=path to blockstorage file, and ./qemu-... -tpm ? where the latter works similar to -soundhw ? and shows a list of available TPM

[Qemu-devel] [PATCH V2 0/9] Qemu Trusted Platform Module (TPM) integration

2011-03-30 Thread Stefan Berger
The following series of patches adds a TPM (Trusted Platform Module) TIS (TPM Interface Spec) interface to Qemu and with that provides means to access a backend implementing the actual TPM functionality. This frontend enables for example Linux's TPM TIS (tpm_tis) driver. I am also posting the

[Qemu-devel] [PATCH V2 8/9] Implementation of the libtpms-based backend

2011-03-30 Thread Stefan Berger
This patch provides the glue for the TPM TIS interface (frontend) to the libtpms that provides the actual TPM functionality. Some details: This part of the patch provides support for the spawning of a thread that will interact with the libtpms-based TPM. It expects a signal from the frontend to

[Qemu-devel] [PATCH V2 4/9] Add tpm_tis driver to build process

2011-03-30 Thread Stefan Berger
The TPM interface (tpm_tis) needs to be explicitly enabled via ./configure --enable-tpm. This restricts the building of the TPM support to i386 and x86_64 targets since both backends I know of, the Xen backend and the libtpms-based backend, will likely only be available for these targets, at

[Qemu-devel] [PATCH V2 2/9] Add TPM (frontend) hardware interface (TPM TIS) to Qemu

2011-03-30 Thread Stefan Berger
This patch adds the main code of the TPM frontend driver, the TPM TIS interface, to Qemu. The code is largely based on my previous implementation for Xen but has been significantly extended to meet the standard's requirements, such as the support for changing of localities and all the

[Qemu-devel] [PATCH V2 7/9] Add a TPM backend skeleton implementation

2011-03-30 Thread Stefan Berger
This patch provides a TPM backend skelteon implementation. It doesn't do anything but it compiles. Signed-off-by: Stefan Berger stef...@linux.vnet.ibm.com --- Makefile.target |5 hw/tpm_builtin.c | 372 +++ hw/tpm_tis.c |3 3

[Qemu-devel] [PATCH V2 9/9] Add block storage support for libtpms based TPM backend

2011-03-30 Thread Stefan Berger
This patch supports the storage of TPM persisten state. The TPM creates state of varying size, depending for example how many keys are loaded into it a a certain time. The worst-case sizes of the different blobs the TPM can write have been pre-calculated and this value is used to determine the

[Qemu-devel] [PATCH V2 6/9] Implement qemu_thread_join function

2011-03-30 Thread Stefan Berger
This patch provides support for 'joining a thread' by wrapping the POSIX pthread_join with qemu_thread_join. Since the backend implementation is based on threads and I am stopping and starting that thread during operations like 'snapshot resume', I do use this functionality to synchronize with

Re: [Qemu-devel] [PATCH] Don't limit node count by smp count

2011-03-30 Thread Sasha Levin
On Wed, 2011-03-30 at 14:28 -0500, Anthony Liguori wrote: On 03/30/2011 02:14 PM, Sasha Levin wrote: It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs. But does this actually work in the code today and does it work with any guests? I've

Re: [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal

2011-03-30 Thread Peter Maydell
2011/3/30 Gleb Natapov g...@redhat.com: On Wed, Mar 30, 2011 at 07:53:41PM +0100, Peter Maydell wrote: I'm not convinced about the utility of printing the pid, personally. Most programs get along fine without printing anything when they receive a terminal signal. Well qemu is a bit of

[Qemu-devel] [PATCH] vl.c: Tidy up message printed when we exit on a signal

2011-03-30 Thread Peter Maydell
Tidy up the message printed when qemu exits due to a signal, so that it's clearer where the message is coming from and that it's not just stray debug output. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- vl.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff

Re: [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal

2011-03-30 Thread malc
On Wed, 30 Mar 2011, Peter Maydell wrote: On 15 March 2011 11:56, Gleb Natapov g...@redhat.com wrote: Currently when rogue script kills QEMU process (using TERM/INT/HUP signal) it looks indistinguishable from system shutdown. Lets report that QEMU was killed and leave some clues about the

Re: [Qemu-devel] [PATCH] Don't limit node count by smp count

2011-03-30 Thread Michael Roth
On 03/30/2011 02:14 PM, Sasha Levin wrote: It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs. Signed-off-by: Sasha Levinlevinsasha...@gmail.com --- vl.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c

Re: [Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-30 Thread Dmitry Eremin-Solenikov
On 3/30/11, Peter Maydell peter.mayd...@linaro.org wrote: On 30 March 2011 12:41, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: @@ -7172,10 +7210,7 @@ static void disas_arm_insn(CPUState * env, DisasContext *s) } if (insn (1 20)) { /* Complete

[Qemu-devel] [RFC PATCH] qed: add support for Copy-on-Read

2011-03-30 Thread Anthony Liguori
When creating an image using qemu-img, just pass '-o copy_on_read' and then whenever QED reads from a backing file, it will write the block to the QED file after the read completes ensuring that you only fetch from the backing device once. This is very useful for streaming images over a slow

Re: [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal

2011-03-30 Thread Gleb Natapov
On Thu, Mar 31, 2011 at 01:35:31AM +0400, malc wrote: On Wed, 30 Mar 2011, Peter Maydell wrote: On 15 March 2011 11:56, Gleb Natapov g...@redhat.com wrote: Currently when rogue script kills QEMU process (using TERM/INT/HUP signal) it looks indistinguishable from system shutdown. Lets