[Qemu-devel] Re: SVM emulation: EVENTINJ marked valid when a pagefault happens while issuing a software interrupt

2010-05-27 Thread Jan Kiszka
Erik van der Kouwe wrote: > Hi, > >> Use Linux+KVM as host OS, it can also run VMMs as guests (aka nested >> SVM). And you could even debug those guests just like when you would run >> QEMU in emulation mode. In contrast to SVM emulation, nesting is fairly >> stable AFAIK. And it is faster. > > I

[Qemu-devel] Re: SVM emulation: EVENTINJ marked valid when a pagefault happens while issuing a software interrupt

2010-05-27 Thread Erik van der Kouwe
Hi, Use Linux+KVM as host OS, it can also run VMMs as guests (aka nested SVM). And you could even debug those guests just like when you would run QEMU in emulation mode. In contrast to SVM emulation, nesting is fairly stable AFAIK. And it is faster. In my experience, if I provide the -enable-k

[Qemu-devel] Re: [OpenBIOS] [PATCH 0/3] sparc64 cleanups v1

2010-05-27 Thread Igor Kovalenko
On Thu, May 27, 2010 at 8:57 PM, Mark Cave-Ayland wrote: > Blue Swirl wrote: > >> On Tue, May 25, 2010 at 12:12 PM, Igor V. Kovalenko >> wrote: >>> >>> One code cleanup and another pci host bridge remap change, >>> the latter requires qemu update with patch already posted to qemu list. >>> >>> v0

[Qemu-devel] Re: [OpenBIOS] [PATCH 0/3] sparc64 cleanups v1

2010-05-27 Thread Igor Kovalenko
On Fri, May 28, 2010 at 12:42 AM, Blue Swirl wrote: > On Thu, May 27, 2010 at 4:57 PM, Mark Cave-Ayland > wrote: >> Blue Swirl wrote: >> >>> On Tue, May 25, 2010 at 12:12 PM, Igor V. Kovalenko >>> wrote: One code cleanup and another pci host bridge remap change, the latter require

[Qemu-devel] [RFC PATCH v4 3/3] block: add sheepdog driver for distributed storage support

2010-05-27 Thread MORITA Kazutaka
Sheepdog is a distributed storage system for QEMU. It provides highly available block level storage volumes to VMs like Amazon EBS. This patch adds a qemu block driver for Sheepdog. Sheepdog features are: - No node in the cluster is special (no metadata node, no control node, etc) - Linear scal

[Qemu-devel] [RFC PATCH v4 1/3] close all the block drivers before the qemu process exits

2010-05-27 Thread MORITA Kazutaka
This patch calls the close handler of the block driver before the qemu process exits. This is necessary because the sheepdog block driver releases the lock of VM images in the close handler. Signed-off-by: MORITA Kazutaka --- block.c |9 + block.h |1 + vl.c|1 + 3 files

[Qemu-devel] [RFC PATCH v4 0/3] Sheepdog: distributed storage system for QEMU

2010-05-27 Thread MORITA Kazutaka
Hi all, This patch adds a block driver for Sheepdog distributed storage system. Please consider for inclusion. I applied comments for the 2nd patch (thanks Kevin!). The rest patches are not changed from the previous version. Changes from v3 to v4 are: - fix error handling in bdrv_snapshot_go

[Qemu-devel] [RFC PATCH v4 2/3] block: call the snapshot handlers of the protocol drivers

2010-05-27 Thread MORITA Kazutaka
When snapshot handlers are not defined in the format driver, it is better to call the ones of the protocol driver. This enables us to implement snapshot support in the protocol driver. We need to call bdrv_close() and bdrv_open() handlers of the format driver before and after bdrv_snapshot_goto()

Re: [Qemu-devel] [PATCH 00/62] s390x tcg target

2010-05-27 Thread Richard Henderson
On 05/27/2010 02:00 PM, Blue Swirl wrote: >> tcg-s390: Update disassembler from binutils head. > > This is GPLv3, which is not OK. Please use the last v2 version, see > 88103cfecf5666237fb2e55a7dd666fa66d316ec. Ok. Thankfully there aren't too many changes since then. I'll wait for more comment

Re: [Qemu-devel] Re: [RFT][PATCH 07/15] qemu_irq: Add IRQ handlers with delivery feedback

2010-05-27 Thread Paul Brook
> >> Then the amount > >> of CPU cycles between timer interrupts would increase and hopefully > >> the guest can keep up. If the guest sleeps, time base could be > >> accelerated to catch up with wall clock and then set back to 1:1 rate. > > > > Can't follow you ATM, sorry. What should be slowed

Re: [Qemu-devel] [PATCH 00/62] s390x tcg target

2010-05-27 Thread Blue Swirl
On Thu, May 27, 2010 at 8:45 PM, Richard Henderson wrote: > The following patch series is available at > >  git://repo.or.cz/qemu/rth.git tcg-s390-2 > > It begins with Uli Hecht's original patch, posted by Alexander > sometime last year.  I then make incremental changes to > >  (1) Make it compile

[Qemu-devel] [PATCH 60/62] tcg-s390: Fix TLB comparison width.

2010-05-27 Thread Richard Henderson
The TLB comparator is sized for the target. Use a 32-bit compare when appropriate. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 6101255..ec4c72a

[Qemu-devel] [PATCH 59/62] tcg-s390: Generalize load/store support.

2010-05-27 Thread Richard Henderson
Rename tcg_out_ldst to tcg_out_mem and add an index parameter. If the index parameter is present, handle it when the offset parameter is large and the addend must be (partially) loaded. Rename SH{32,64}_REG_NONE to TCG_REG_NONE, as the concept of a missing register is not unique to the shift oper

[Qemu-devel] [PATCH 41/62] tcg-s390: Allocate the code_gen_buffer near the main program.

2010-05-27 Thread Richard Henderson
This allows the use of direct calls to the helpers, and a direct branch back to the epilogue. Signed-off-by: Richard Henderson --- exec.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index bb3dcad..7bbfe60 100644 --- a/exec.c +++ b/exec.c @@ -519

[Qemu-devel] [PATCH 56/62] tcg-s390: Use the LOAD AND TEST instruction for compares.

2010-05-27 Thread Richard Henderson
This instruction is always available, and nicely eliminates the constant load for comparisons against zero. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 133 +--- 1 files changed, 91 insertions(+), 42 deletions(-) diff --git a/tcg/s39

Re: [Qemu-devel] Re: [RFT][PATCH 07/15] qemu_irq: Add IRQ handlers with delivery feedback

2010-05-27 Thread Jan Kiszka
Blue Swirl wrote: > On Thu, May 27, 2010 at 7:08 PM, Jan Kiszka wrote: >> Blue Swirl wrote: >>> On Thu, May 27, 2010 at 6:31 PM, Jan Kiszka wrote: Blue Swirl wrote: > On Wed, May 26, 2010 at 11:26 PM, Paul Brook > wrote: >>> At the other extreme, would it be possible to make th

[Qemu-devel] [PATCH 53/62] tcg-s390: Conditionalize XOR IMMEDIATE instructions.

2010-05-27 Thread Richard Henderson
The immediate XOR instructions are in the extended-immediate facility. Use these only if present. At the same time, pull the logic to load immediates into registers into a constraint letter for TCG. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 53 +

Re: [Qemu-devel] Re: [RFT][PATCH 07/15] qemu_irq: Add IRQ handlers with delivery feedback

2010-05-27 Thread Paul Brook
> > In some cases we don't even do that, and just reschedule the event some > > arbitrarily small amount of time later. This assumes the guest to do > > useful work in that time. In a single threaded environment this is > > probably true - qemu got enough CPU to inject the first interrupt, so > > w

[Qemu-devel] Re: SVM emulation: EVENTINJ marked valid when a pagefault happens while issuing a software interrupt

2010-05-27 Thread Jan Kiszka
Erik van der Kouwe wrote: > Hi, > >> Be warned: Though my experience is already more than a year old, the SVM >> emulation in QEMU is most probably not yet rock-stable. Always check >> suspicious behavior against real hardware and/or the spec. [ As real >> hardware is everywhere, nesting works wit

[Qemu-devel] [PATCH 52/62] tcg-s390: Conditionalize OR IMMEDIATE instructions.

2010-05-27 Thread Richard Henderson
The 32-bit immediate OR instructions are in the extended-immediate facility. Use these only if present. At the same time, pull the logic to load immediates into registers into a constraint letter for TCG. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 92 +++

[Qemu-devel] Re: [PATCH v3 10/17] QMP: Reserve namespace for complex object classes

2010-05-27 Thread Jan Kiszka
Luiz Capitulino wrote: > On Sun, 23 May 2010 12:59:23 +0200 > Jan Kiszka wrote: > >> From: Jan Kiszka >> >> This reserves JSON objects that contain the key '__class__' for QMP-specific >> complex objects. First user will be the buffer class. >> >> Signed-off-by: Jan Kiszka >> --- >> QMP/qmp-sp

[Qemu-devel] Re: [PATCH v3 06/17] qdev: Allow device specification by qtree path for device_del

2010-05-27 Thread Jan Kiszka
Luiz Capitulino wrote: > On Sun, 23 May 2010 12:59:19 +0200 > Jan Kiszka wrote: > >> From: Jan Kiszka >> >> Allow to specify the device to be removed via device_del not only by ID >> but also by its full or abbreviated qtree path. For this purpose, >> qdev_find is introduced which combines walki

[Qemu-devel] [PATCH 49/62] tcg-s390: Conditionalize LOAD IMMEDIATE instructions.

2010-05-27 Thread Richard Henderson
The LOAD IMMEDIATE and (some of) the LOAD LOGICAL IMMEDIATE instructions are in the extended-immediate facility. Begin making that facility optional by using these only if present. Thankfully, the LOAD ADDRESS RELATIVE and the LOAD LOGICAL IMMEDIATE insns with 16-bit constants are always availabl

[Qemu-devel] [PATCH 50/62] tcg-s390: Conditionalize 8 and 16 bit extensions.

2010-05-27 Thread Richard Henderson
These instructions are part of the extended-immediate facility. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 115 ++--- 1 files changed, 90 insertions(+), 25 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c inde

[Qemu-devel] [PATCH 48/62] tcg-s390: Conditionalize ADD IMMEDIATE instructions.

2010-05-27 Thread Richard Henderson
The ADD IMMEDIATE instructions are in the extended-immediate facility. Begin making that facility optional by using these only if present. This requires rearranging the way constants constraints are handled, so that we properly canonicalize constants for 32-bit operations. Signed-off-by: Richard H

[Qemu-devel] [PATCH 61/62] tcg-s390: Enable compile in 32-bit mode.

2010-05-27 Thread Richard Henderson
The TCG translator will *not* work in 32-bit mode, and there is a check added to query_facilities to enforce that. However, QEMU can run in KVM mode when built in 32-bit mode, and this patch is just good enough to enable that method to continue. Signed-off-by: Richard Henderson --- configure

[Qemu-devel] Re: [PATCH v3 13/17] monitor: Allow to exclude commands from QMP

2010-05-27 Thread Jan Kiszka
Luiz Capitulino wrote: > On Sun, 23 May 2010 12:59:26 +0200 > Jan Kiszka wrote: > >> From: Jan Kiszka >> >> Ported commands that are marked 'user_only' will not be considered for >> QMP monitor sessions. This allows to implement new commands that do not >> (yet) provide a sufficiently stable int

[Qemu-devel] [PATCH 39/62] tcg-s390: Rearrange register allocation order.

2010-05-27 Thread Richard Henderson
Try to avoid conflicting with the outgoing function call arguments. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 23 +-- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index a26c963..eb57e24 100

[Qemu-devel] [PATCH 43/62] tcg-s390: Tidy tcg_prepare_qemu_ldst.

2010-05-27 Thread Richard Henderson
Make use of the reg+reg+disp addressing mode to eliminate redundant additions. Make use of the load-and-operate insns. Avoid an extra register copy when using the 64-bit shift insns. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 56 --

[Qemu-devel] [PATCH 54/62] tcg-s390: Do not require the extended-immediate facility.

2010-05-27 Thread Richard Henderson
All of the instructions from this group are now conditionalized. Signed-off-by: Richard Henderson --- configure |2 +- tcg/s390/tcg-target.c |4 2 files changed, 1 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 56dee88..f818198 100755 --- a/confi

[Qemu-devel] [PATCH 45/62] tcg-s390: Implement GUEST_BASE.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- configure |2 ++ tcg/s390/tcg-target.c | 30 +- tcg/s390/tcg-target.h |2 ++ 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 72d3df8..56dee88 100755 --- a/configure +

[Qemu-devel] [PATCH 62/62] tcg: Optionally sign-extend 32-bit arguments for 64-bit host.

2010-05-27 Thread Richard Henderson
Some hosts (amd64, ia64) have an ABI that ignores the high bits of the 64-bit register when passing 32-bit arguments. Others, like s390x, require the value to be properly sign-extended for the type. I.e. "int32_t" must be sign-extended and "uint32_t" must be zero-extended to 64-bits. To effect t

[Qemu-devel] cg14

2010-05-27 Thread Artyom Tarasenko
2010/5/27 Bob Breuer : > Artyom Tarasenko wrote: >> Was going to put some more empty slots into SS-10/20 (VSIMMs, SX) >> after we are done with SS-5 (due to technical limitations I can switch >> access from one real SS model to another one once a few days only). >> > I have a partial implementation

[Qemu-devel] [PATCH 44/62] tcg-s390: Tidy user qemu_ld/st.

2010-05-27 Thread Richard Henderson
Create a tcg_prepare_user_ldst to prep the host address to be used to implement the guest memory operation. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 33 + 1 files changed, 21 insertions(+), 12 deletions(-) diff --git a/tcg/s390/tcg-target.c

[Qemu-devel] [PATCH 40/62] tcg-s390: Tidy goto_tb.

2010-05-27 Thread Richard Henderson
Invent tcg_out_ld_abs, using LOAD RELATIVE instructions, and use it. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 34 ++ 1 files changed, 22 insertions(+), 12 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index eb57e24.

[Qemu-devel] [PATCH 58/62] tcg-s390: Use COMPARE AND BRANCH instructions.

2010-05-27 Thread Richard Henderson
These instructions are available with the general-instructions-extension facility. Use them if available. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 102 +--- 1 files changed, 95 insertions(+), 7 deletions(-) diff --git a/tcg/s390/

[Qemu-devel] [PATCH 42/62] tcg-s390: Rearrange qemu_ld/st to avoid register copy.

2010-05-27 Thread Richard Henderson
Split out qemu_ld/st_direct with full address components. Avoid copy from addr_reg to R2 for 64-bit guests. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 270 ++--- 1 files changed, 145 insertions(+), 125 deletions(-) diff --git a/tcg/

[Qemu-devel] [PATCH 36/62] tcg-s390: Icache flush is a no-op.

2010-05-27 Thread Richard Henderson
Before gcc 4.2, __builtin___clear_cache doesn't exist, and afterward the gcc s390 backend implements it as nothing. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.h |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/tcg/s390/tcg-target.h b/tcg/s390/tcg-target.

[Qemu-devel] [PATCH 57/62] tcg-s390: Use the COMPARE IMMEDIATE instrucions for compares.

2010-05-27 Thread Richard Henderson
These instructions are available with extended-immediate facility. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 44 ++-- 1 files changed, 42 insertions(+), 2 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index e

[Qemu-devel] [PATCH 38/62] tcg-s390: Tidy regset initialization; use R14 as temporary.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 26 -- 1 files changed, 12 insertions(+), 14 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index ee2e879..a26c963 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -36

[Qemu-devel] [PATCH 47/62] tcg-s390: Conditionalize general-instruction-extension insns.

2010-05-27 Thread Richard Henderson
The LOAD RELATIVE and MULTIPLY SINGLE IMMEDIATE instructions are currently the only insns from that extension. It's easy enough to test for that facility and avoid emitting them. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 51 +---

[Qemu-devel] [PATCH 35/62] tcg-s390: Implement immediate XORs.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 45 + 1 files changed, 41 insertions(+), 4 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 1bc9b4c..ec8c84d 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/t

[Qemu-devel] [PATCH 55/62] tcg-s390: Use 16-bit branches for forward jumps.

2010-05-27 Thread Richard Henderson
Translation blocks are never big enough to require 32-bit branches. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 27 ++- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 0dc71e2..697c5e4

[Qemu-devel] [PATCH 33/62] tcg-s390: Implement immediate ORs.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 63 +--- 1 files changed, 59 insertions(+), 4 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 2fd58bd..2a9d64d 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s39

[Qemu-devel] [PATCH 34/62] tcg-s390: Implement immediate MULs.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 28 1 files changed, 24 insertions(+), 4 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 2a9d64d..1bc9b4c 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -5

[Qemu-devel] [PATCH 51/62] tcg-s390: Conditionalize AND IMMEDIATE instructions.

2010-05-27 Thread Richard Henderson
The 32-bit immediate AND instructions are in the extended-immediate facility. Use these only if present. At the same time, pull the logic to load immediates into registers into a constraint letter for TCG. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 209 ++

[Qemu-devel] [PATCH 46/62] tcg-s390: Query instruction extensions that are installed.

2010-05-27 Thread Richard Henderson
Verify that we have all the instruction extensions that we generate. Future patches can tailor code generation to the set of instructions that are present. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 122 + 1 files changed, 122 in

[Qemu-devel] [PATCH 25/62] tcg-s390: Re-implement tcg_out_movi.

2010-05-27 Thread Richard Henderson
Make better use of the LOAD HALFWORD IMMEDIATE, LOAD IMMEDIATE, and INSERT IMMEDIATE instruction groups. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 90 - 1 files changed, 74 insertions(+), 16 deletions(-) diff --git a/tcg/s390/

[Qemu-devel] [PATCH 30/62] tcg-s390: Tidy unimplemented opcodes.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 25 ++--- 1 files changed, 10 insertions(+), 15 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 97ac66d..cf70cc2 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -911

[Qemu-devel] [PATCH 29/62] tcg-s390: Use LOAD COMPLIMENT for negate.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 10 ++ 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index f85063e..97ac66d 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -1028,16 +1028,10 @@

[Qemu-devel] [PATCH 26/62] tcg-s390: Implement sign and zero-extension operations.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 94 +--- tcg/s390/tcg-target.h | 20 +- 2 files changed, 90 insertions(+), 24 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index fe83415..3f7d08d 100644

[Qemu-devel] [PATCH 37/62] tcg-s390: Define TCG_TMP0.

2010-05-27 Thread Richard Henderson
Use a define for the temp register instead of hard-coding it. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 49 ++--- 1 files changed, 26 insertions(+), 23 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index

[Qemu-devel] [PATCH 22/62] tcg-s390: Tidy branches.

2010-05-27 Thread Richard Henderson
Add tgen_gotoi to implement conditional and unconditional direct branches. Add tgen_branch to implement branches to labels. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 96 - 1 files changed, 55 insertions(+), 41 deletions(-) di

[Qemu-devel] [PATCH 14/62] tcg-s390: Define tcg_target_reg_names.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 2f29728..e0a0e73 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -113,6 +113,12 @@ #defin

[Qemu-devel] [PATCH 32/62] tcg-s390: Implement immediate ANDs.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 138 + 1 files changed, 127 insertions(+), 11 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index caa2d0d..2fd58bd 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/

[Qemu-devel] [PATCH 24/62] tcg-s390: Implement div2.

2010-05-27 Thread Richard Henderson
The s390 divide instructions always produce both remainder and quotient. Since TCG has no mechanism for allocating even+odd register pairs, force the use of the R2/R3 register pair. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 44 ++-- tc

[Qemu-devel] [PATCH 20/62] tcg-s390: Implement setcond.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 66 ++-- 1 files changed, 47 insertions(+), 19 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index f21a9ca..b150d1a 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s3

[Qemu-devel] [PATCH 18/62] tcg-s390: Use matching constraints.

2010-05-27 Thread Richard Henderson
Simplify the generation within tcg_out_op by forcing arg1 == arg0 for the two-operand instructions. In addition, fix the use of the 64-bit shift insns in implementing the 32-bit shifts. This would yield incorrect results for the right shifts. Signed-off-by: Richard Henderson --- tcg/s390/tcg-t

[Qemu-devel] [PATCH 23/62] tcg-s390: Add tgen_calli.

2010-05-27 Thread Richard Henderson
Use it in the softmmu code paths, and INDEX_op_call. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 45 - 1 files changed, 16 insertions(+), 29 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index f4dab1a..0bd4

[Qemu-devel] [PATCH 31/62] tcg-s390: Use the extended-immediate facility for add/sub.

2010-05-27 Thread Richard Henderson
This gives us 32-bit immediate addends. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 68 +--- 1 files changed, 52 insertions(+), 16 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index cf70cc2..caa2d0d 100644

[Qemu-devel] [PATCH 28/62] tcg-s390: Implement rotates.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 46 ++ tcg/s390/tcg-target.h |4 ++-- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 7c7adb3..f85063e 100644 --- a/tc

[Qemu-devel] [PATCH 17/62] tcg-s390: Reorganize instruction emission

2010-05-27 Thread Richard Henderson
Tie the opcode names to the format, and arrange for moderate compile-time checking that the instruction format output routine matches the format used by the opcode. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 625 +++-- tcg/s390/tcg-t

[Qemu-devel] [PATCH 12/62] tcg-s390: Eliminate the S constraint.

2010-05-27 Thread Richard Henderson
R4 is not clobbered until all of the inputs are consumed, so there's no need to avoid R4 in the qemu_st paths. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 30 ++ 1 files changed, 6 insertions(+), 24 deletions(-) diff --git a/tcg/s390/tcg-target.c b

[Qemu-devel] [PATCH 09/62] tcg-s390: Mark R0 & R15 reserved.

2010-05-27 Thread Richard Henderson
Don't merely exclude them from the register allocation order. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index eb3ca38..6988937 100644 --- a/tcg/s390/tcg-t

[Qemu-devel] [PATCH 07/62] s390x: Don't use a linker script for user-only.

2010-05-27 Thread Richard Henderson
The default placement of the application at 0x8000 is fine, and will avoid the default placement for most other guests. Signed-off-by: Richard Henderson --- configure |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 3cd2c5f..e2b389d 10075

[Qemu-devel] [PATCH 11/62] tcg-s390: Move tcg_out_mov up and use it throughout.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 42 -- 1 files changed, 20 insertions(+), 22 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 25c80e6..455cf6a 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg

[Qemu-devel] [PATCH 27/62] tcg-s390: Implement bswap operations.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 24 tcg/s390/tcg-target.h | 10 +- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 3f7d08d..7c7adb3 100644 --- a/tcg/s390/tcg-targe

[Qemu-devel] [PATCH 19/62] tcg-s390: Fixup qemu_ld/st opcodes.

2010-05-27 Thread Richard Henderson
Implement INDEX_op_qemu_ld32. Fix constraints on qemu_ld64. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index c45d8b5..f21a9ca 100644 --- a/tcg/s390/tcg-t

[Qemu-devel] [PATCH 05/62] tcg-s390: Move opcode defines to tcg-target.c.

2010-05-27 Thread Richard Henderson
In addition to being the Right Thing, some of the RR_* defines conflict with RR_* enumerations in target-mips/cpu.h. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 81 + tcg/s390/tcg-target.h | 80 -

[Qemu-devel] [PATCH 08/62] tcg-s390: Avoid set-but-not-used werrors.

2010-05-27 Thread Richard Henderson
The s_bits variable was only used in a dprintf, and isn't really informative since we already dump 'opc' from which s_bits is trivially derived. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 16 ++-- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/tcg

[Qemu-devel] [PATCH 21/62] tcg-s390: Generalize the direct load/store emission.

2010-05-27 Thread Richard Henderson
Define tcg_out_ldst which can properly choose between RX and RXY format instructions based on the offset used, and also handles large offsets. Use it to implement all the INDEX_op_ld/st operations. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 152 +++

[Qemu-devel] [PATCH 10/62] tcg-s390: R6 is a function argument register

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 6988937..25c80e6 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -137,6 +137,7 @@ static const

[Qemu-devel] [PATCH 01/62] S390 TCG target

2010-05-27 Thread Richard Henderson
From: Alexander Graf We already have stubs for a TCG target on S390, but were missing code that would actually generate instructions. So I took Uli's patch, cleaned it up and present it to you again :-). I hope I found all odd coding style and unprettiness issues, but if you still spot one feel

[Qemu-devel] [PATCH 16/62] tcg-s390: Compute is_write in cpu_signal_handler.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- cpu-exec.c | 42 +++--- 1 files changed, 39 insertions(+), 3 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index c776605..026980a 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -1156,11 +1156,47 @@ int cpu_signal_handler

[Qemu-devel] [PATCH 06/62] s390x: Avoid _llseek.

2010-05-27 Thread Richard Henderson
There's no _llseek on s390x either. Replace the existing test for __x86_64__ with a functional test for __NR_llseek. Signed-off-by: Richard Henderson --- linux-user/syscall.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c

[Qemu-devel] [PATCH 04/62] tcg-s390: Fix tcg_prepare_qemu_ldst for user mode.

2010-05-27 Thread Richard Henderson
This isn't the most efficient way to implement user memory accesses, but it's the minimal change to fix the compilation error. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s3

[Qemu-devel] [PATCH 13/62] tcg-s390: Add -m64 and -march to s390x compilation.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- configure |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/configure b/configure index e2b389d..72d3df8 100755 --- a/configure +++ b/configure @@ -697,7 +697,11 @@ case "$cpu" in fi ;; s390) -

[Qemu-devel] [PATCH 03/62] tcg-s390: Only validate CPUTLBEntry for system mode.

2010-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 45c1bf7..9ab1d96 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -1198,10 +1198,12 @@ do_logic

[Qemu-devel] [PATCH 02/62] add lost chunks from the original patch

2010-05-27 Thread Richard Henderson
From: Alexander Graf --- tcg/s390/tcg-target.c |3 ++ tcg/s390/tcg-target.h | 86 +++-- 2 files changed, 86 insertions(+), 3 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index d2a93c2..45c1bf7 100644 --- a/tcg/s390/tcg

[Qemu-devel] [PATCH 00/62] s390x tcg target

2010-05-27 Thread Richard Henderson
The following patch series is available at git://repo.or.cz/qemu/rth.git tcg-s390-2 It begins with Uli Hecht's original patch, posted by Alexander sometime last year. I then make incremental changes to (1) Make it compile -- first patch that compiles is tagged as tcg-s390-2-first-comp

[Qemu-devel] Re: [OpenBIOS] [PATCH 0/3] sparc64 cleanups v1

2010-05-27 Thread Blue Swirl
On Thu, May 27, 2010 at 4:57 PM, Mark Cave-Ayland wrote: > Blue Swirl wrote: > >> On Tue, May 25, 2010 at 12:12 PM, Igor V. Kovalenko >> wrote: >>> >>> One code cleanup and another pci host bridge remap change, >>> the latter requires qemu update with patch already posted to qemu list. >>> >>> v0

[Qemu-devel] Re: [PATCH v3 16/17] QMP: Fix python helper /wrt long return strings

2010-05-27 Thread Luiz Capitulino
On Sun, 23 May 2010 12:59:29 +0200 Jan Kiszka wrote: > From: Jan Kiszka > > Remove the arbitrary limitation of 1024 characters per return string and > read complete lines instead. Required for device_show. Thanks for both fixes, I have started working on a better version of this script that m

[Qemu-devel] Re: [PATCH v3 13/17] monitor: Allow to exclude commands from QMP

2010-05-27 Thread Luiz Capitulino
On Sun, 23 May 2010 12:59:26 +0200 Jan Kiszka wrote: > From: Jan Kiszka > > Ported commands that are marked 'user_only' will not be considered for > QMP monitor sessions. This allows to implement new commands that do not > (yet) provide a sufficiently stable interface for QMP use (e.g. > device

[Qemu-devel] [PATCH] Extra scan codes for missing keys

2010-05-27 Thread Brendan Sleight
Hi All, First - Qemu is fantastic and allows lots of wonderful things. Second, when using qemu-system-ppc, I wanted to use sendkey to emulate a colon. This patch enables shift-semicolon to emulate a ':' Whilst I was adding semicolon, I used the following link to look up some other missing keys :

[Qemu-devel] Re: [PATCH v3 10/17] QMP: Reserve namespace for complex object classes

2010-05-27 Thread Luiz Capitulino
On Sun, 23 May 2010 12:59:23 +0200 Jan Kiszka wrote: > From: Jan Kiszka > > This reserves JSON objects that contain the key '__class__' for QMP-specific > complex objects. First user will be the buffer class. > > Signed-off-by: Jan Kiszka > --- > QMP/qmp-spec.txt | 16 +--- > 1

[Qemu-devel] Re: SVM emulation: EVENTINJ marked valid when a pagefault happens while issuing a software interrupt

2010-05-27 Thread Erik van der Kouwe
Hi, Be warned: Though my experience is already more than a year old, the SVM emulation in QEMU is most probably not yet rock-stable. Always check suspicious behavior against real hardware and/or the spec. [ As real hardware is everywhere, nesting works with KVM+SVM and is much faster, motivation

[Qemu-devel] Re: [PATCH v3 06/17] qdev: Allow device specification by qtree path for device_del

2010-05-27 Thread Luiz Capitulino
On Sun, 23 May 2010 12:59:19 +0200 Jan Kiszka wrote: > From: Jan Kiszka > > Allow to specify the device to be removed via device_del not only by ID > but also by its full or abbreviated qtree path. For this purpose, > qdev_find is introduced which combines walking the qtree with searching > for

Re: [Qemu-devel] Re: [RFT][PATCH 07/15] qemu_irq: Add IRQ handlers with delivery feedback

2010-05-27 Thread Blue Swirl
On Thu, May 27, 2010 at 7:08 PM, Jan Kiszka wrote: > Blue Swirl wrote: >> On Thu, May 27, 2010 at 6:31 PM, Jan Kiszka wrote: >>> Blue Swirl wrote: On Wed, May 26, 2010 at 11:26 PM, Paul Brook wrote: >> At the other extreme, would it be possible to make the educated guests >> aware o

[Qemu-devel] [PATCH 1/1] ceph/rbd block driver for qemu-kvm (v2)

2010-05-27 Thread Christian Brunner
This is a block driver for the distributed file system Ceph (http://ceph.newdream.net/). This driver uses librados (which is part of the Ceph server) for direct access to the Ceph object store and is running entirely in userspace. Therefore it is called "rbd" - rados block device. To compile t

[Qemu-devel] [PATCH 0/1] ceph/rbd block driver for qemu-kvm (v2)

2010-05-27 Thread Christian Brunner
Hi, Based on the review notes Blue Swirl sent us after my last mail, Yehuda cleaned up the header files. The patch is much smaller now and I hope that you accept it for inclusion. To build it, you will need the testing (or unstable) git head of ceph now. The required header files will be part of

Re: [Qemu-devel] Re: [RFT][PATCH 07/15] qemu_irq: Add IRQ handlers with delivery feedback

2010-05-27 Thread Jan Kiszka
Blue Swirl wrote: > On Thu, May 27, 2010 at 6:31 PM, Jan Kiszka wrote: >> Blue Swirl wrote: >>> On Wed, May 26, 2010 at 11:26 PM, Paul Brook wrote: > At the other extreme, would it be possible to make the educated guests > aware of the virtualization also in clock aspect: virtio-clock? >>

[Qemu-devel] Re: [PATCH, RFC 1/4] pci: add I/O registration functions

2010-05-27 Thread Blue Swirl
On Thu, May 27, 2010 at 2:39 PM, Michael S. Tsirkin wrote: > On Sun, May 23, 2010 at 08:34:30PM +, Blue Swirl wrote: >> Convert also APB to use the registration so that >> we can remove mem_base. >> >> Signed-off-by: Blue Swirl >> --- >>  hw/apb_pci.c |   23 - >>  hw/pci.c

Re: [Qemu-devel] [PATCH] vhost_net.c: v2 Fix build failure introduced by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2

2010-05-27 Thread Blue Swirl
Thanks, applied. On Thu, May 27, 2010 at 12:26 PM, wrote: > From: Jes Sorensen > > Fix build failure introduced by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2 > > The format statement expects unsigned long on x86_64, but receives > unsigned long long, so gcc exits with an error. > > Signed-off-by:

[Qemu-devel] [Bug 586221] Re: Linux on ARM/Mainstone machine fails at bootstrap

2010-05-27 Thread Lars Munch
There are already patches pending to solve these issues: http://article.gmane.org/gmane.comp.emulators.qemu/69598 and http://article.gmane.org/gmane.comp.emulators.qemu/69597 Hopefully they will be reviewed/applied soon. -- Linux on ARM/Mainstone machine fails at bootstrap https://bugs.launchpa

[Qemu-devel] [Bug 586424] Re: SMC91C111 failed when booting Linux/ARM(Mainstone) since 0.10.0

2010-05-27 Thread Lars Munch
This was fixed some time ago in commit 3b4b86aace17ef07fc4f85a9662c991efbc83e15 -- SMC91C111 failed when booting Linux/ARM(Mainstone) since 0.10.0 https://bugs.launchpad.net/bugs/586424 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. St

Re: [Qemu-devel] Re: [RFT][PATCH 07/15] qemu_irq: Add IRQ handlers with delivery feedback

2010-05-27 Thread Blue Swirl
On Thu, May 27, 2010 at 6:31 PM, Jan Kiszka wrote: > Blue Swirl wrote: >> On Wed, May 26, 2010 at 11:26 PM, Paul Brook wrote: At the other extreme, would it be possible to make the educated guests aware of the virtualization also in clock aspect: virtio-clock? >>> The guest doesn't even

[Qemu-devel] Re: SVM emulation: EVENTINJ marked valid when a pagefault happens while issuing a software interrupt

2010-05-27 Thread Jan Kiszka
Erik van der Kouwe wrote: > Dear all, > > I have been experiencing problems with duplicate delivery of software > interrupts when running a VMM inside QEMU with SVM emulation. I believe Be warned: Though my experience is already more than a year old, the SVM emulation in QEMU is most probably not

[Qemu-devel] Matheus Teles cantor sertanejo

2010-05-27 Thread Matheus Teles
Matheus Teles, 15 anos de idade, cantor sertanejo. Acesse: www.MatheusTeles.com.br

Re: [Qemu-devel] Re: [RFT][PATCH 07/15] qemu_irq: Add IRQ handlers with delivery feedback

2010-05-27 Thread Jan Kiszka
Blue Swirl wrote: > On Wed, May 26, 2010 at 11:26 PM, Paul Brook wrote: >>> At the other extreme, would it be possible to make the educated guests >>> aware of the virtualization also in clock aspect: virtio-clock? >> The guest doesn't even need to be aware of virtualization. It just needs to >>

Re: [Qemu-devel] Re: [RFT][PATCH 07/15] qemu_irq: Add IRQ handlers with delivery feedback

2010-05-27 Thread Blue Swirl
2010/5/27 Gleb Natapov : > On Wed, May 26, 2010 at 08:35:00PM +, Blue Swirl wrote: >> On Wed, May 26, 2010 at 8:09 PM, Jan Kiszka wrote: >> > Blue Swirl wrote: >> >> On Tue, May 25, 2010 at 9:44 PM, Jan Kiszka wrote: >> >>> Anthony Liguori wrote: >> On 05/25/2010 02:09 PM, Blue Swirl wro

  1   2   >