[Qemu-devel] Vista guest doesn t start after libvirt/qemu upgrade

2011-02-21 Thread Matthias Meyer
Hi, I've updated my Debian lenny to Debian squeeze last week. So I have now: qemu 0.12.5+dfsg-3 qemu-keymaps 0.12.5+dfsg-3 qemu-kvm 0.12.5+dfsg-5 qemu-system 0.12.5+dfsg-3 qemu-user 0.12.5+dfsg-3 qemu-utils 0.12.5+dfsg-3 libvirt 0.8.3-5 virt-manager 0.8.4-8 Yesterday I try to star

[Qemu-devel] when to check external interrupt request ? or what is the timing to check and arise external interrupt ?

2011-02-21 Thread wang sheng
I'm porting qemu to an new architecture. I come across some difficulty that I can't define the timing that enable qemu's main-thread to be interrupt and check external interrupt . I understand the way that mips used to check external interrupt . in qemu-system-mips , during do translation , if

[Qemu-devel] Re: qemu-0.14.0 doesn't compile on ppc32

2011-02-21 Thread nello martuscielli
On Mon, Feb 21, 2011 at 9:10 AM, Paolo Bonzini wrote: > On 02/20/2011 06:32 PM, Peter Maydell wrote: >> >> On 20 February 2011 16:56, Aurelien Jarno  wrote: >>> >>> On Sun, Feb 20, 2011 at 03:01:12PM +0100, nello martuscielli wrote:   CC    x86_64-softmmu/translate.o {standard input

[Qemu-devel] General IO ports in pc386

2011-02-21 Thread Tomas Bures
Dear all, I'm preparing a class on embedded systems. I would like to make a client that interfaces with QEMU and the application running inside it. This client would simulate the physical environment that the application running inside QEMU should control. To achieve this, I would like to int

[Qemu-devel] [PATCH 1/3] target-arm: Fix soft interrupt in GIC distributor

2011-02-21 Thread Adam Lackorzynski
Fix selection of target list filter mode. Signed-off-by: Adam Lackorzynski Reviewed-by: Peter Maydell --- hw/arm_gic.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm_gic.c b/hw/arm_gic.c index e6b1953..0e934ec 100644 --- a/hw/arm_gic.c +++ b/hw/arm_gic.c @@ -

[Qemu-devel] [PATCH 0/3] ARM additions and fixes

2011-02-21 Thread Adam Lackorzynski
The following patches fix and enhance ARM related functionality. Adam Lackorzynski (3): target-arm: Fix soft interrupt in GIC distributor target-arm: Implement cp15 VA->PA translation target-arm: Integrate secondary CPU reset in arm_boot hw/arm_boot.c| 23 +++

[Qemu-devel] [PATCH 2/3] target-arm: Implement cp15 VA->PA translation

2011-02-21 Thread Adam Lackorzynski
Implement VA->PA translations by cp15-c7 that went through unchanged previously. Signed-off-by: Adam Lackorzynski --- target-arm/cpu.h |1 + target-arm/helper.c | 48 ++-- target-arm/machine.c |2 ++ 3 files changed, 49 insertions(+), 2

[Qemu-devel] [PATCH 3/3] target-arm: Integrate secondary CPU reset in arm_boot

2011-02-21 Thread Adam Lackorzynski
Integrate secondary CPU reset into arm_boot, removing it from realview.c. On non-Linux systems secondary CPUs start with the same entry as the boot CPU. Signed-off-by: Adam Lackorzynski --- hw/arm_boot.c | 23 +++ hw/realview.c | 14 -- 2 files changed, 15 ins

[Qemu-devel] [PATCH 5/5] hw/realview: Wire up the MMC card status

2011-02-21 Thread Peter Maydell
Instantiate the three PL061 GPIO modules the realview boards have. Connect the MMC card status outputs of the PL181 MMC controller to both the system registers and the GPIO module which handles internal devices. Signed-off-by: Peter Maydell --- hw/realview.c | 29 ++---

[Qemu-devel] [PATCH 4/5] hw/irq: Add qemu_irq_split() so one GPIO output can feed two inputs

2011-02-21 Thread Peter Maydell
Add a qemu_irq_split() function which allows a board to wire a single GPIO output up to two GPIO inputs. This is needed for realview boards, where the MMC card status is visible both in a system register and via a PL061 GPIO module. Signed-off-by: Peter Maydell --- hw/irq.c | 15 ++

[Qemu-devel] [PATCH 1/5] hw/pl181: Implement GPIO output pins for card status

2011-02-21 Thread Peter Maydell
Add two GPIO output pins to the PL181 model to indicate the card present and readonly status information. On ARM boards these usually are reflected in a system register. Signed-off-by: Peter Maydell --- hw/pl181.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/p

[Qemu-devel] Pad short frames to minimum size (60 bytes)

2011-02-21 Thread Stefan Weil
Am 21.09.2010 11:16, schrieb Stefan Hajnoczi: On Mon, Sep 20, 2010 at 9:31 PM, Anthony Liguori wrote: On 09/20/2010 05:42 AM, Michael S. Tsirkin wrote: On Sun, Sep 19, 2010 at 07:36:51AM +0100, Stefan Hajnoczi wrote: On Sat, Sep 18, 2010 at 10:27 PM, Edgar E. Iglesias wrote: This doesn't l

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

2011-02-21 Thread Peter Maydell
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 status, which we can then wire up to both a system register and a P

[Qemu-devel] [PATCH 2/5] hw/arm_sysctl.c: Wire MCI register MMC card status bits to GPIO inputs

2011-02-21 Thread Peter Maydell
Implement some GPIO inputs which a board can connect up to set the MMC card status bits in the MCI register. Signed-off-by: Peter Maydell --- hw/arm_sysctl.c | 47 ++- hw/primecell.h |4 2 files changed, 50 insertions(+), 1 deletions(-) di

[Qemu-devel] [PATCH 3/5] hw/pl061.c: Implement ARM PL061 as well as Luminary one

2011-02-21 Thread Peter Maydell
ARM's PL061 has a different set of ID registers to the one in the Luminary Stellaris; implement this so that the Linux driver can identify the Realview PBX PL061 correctly. Signed-off-by: Peter Maydell --- hw/pl061.c | 23 +++ hw/stellaris.c |2 +- 2 files changed,

Re: [Qemu-devel] [PATCH 2/3] target-arm: Fix soft interrupt in GIC distributor

2011-02-21 Thread Peter Maydell
On 15 February 2011 10:49, Adam Lackorzynski wrote: > Fix selection of target list filter mode. > > Signed-off-by: Adam Lackorzynski Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] KVM Agenda for Feb 22

2011-02-21 Thread Anthony Liguori
On 02/21/2011 11:12 AM, Juan Quintela wrote: please send in any agenda items you are interested in covering. - 0.14.0 release is out, thanks to everyone that participated! Let's discuss what worked well, what could be improved. - 0.15 planning - Should we do a bump to 1.0? - Probabl

[Qemu-devel] Re: [PATCH 2/3] NBD library: add aio-compatible read/write function

2011-02-21 Thread Stefan Hajnoczi
On Mon, Feb 21, 2011 at 12:37 PM, Kevin Wolf wrote: > Am 18.02.2011 13:55, schrieb Nick Thomas: >> +retry: >> +    if (do_read) { >> +        ret = recvmsg(sockfd, &msg, 0); >> +    } else { >> +        ret = sendmsg(sockfd, &msg, 0); >> +    } >> + >> +    /* recoverable error */ >> +    if (ret

[Qemu-devel] Re: [PATCH 3/3] block/nbd: Make the NBD block device use the AIO interface

2011-02-21 Thread Stefan Hajnoczi
On Fri, Feb 18, 2011 at 12:55:29PM +, Nick Thomas wrote: > +static inline AIOReq *alloc_aio_req(BDRVNBDState *s, NBDAIOCB *acb, > +size_t data_len, > +off_t offset, > +off_t iov_offset) >

[Qemu-devel] Re: [PATCH] scripts: add a guard macro in generated .h files

2011-02-21 Thread Tristan Gingold
On Feb 21, 2011, at 9:14 AM, Paolo Bonzini wrote: > On 02/21/2011 07:42 AM, Tristan Gingold wrote: >> Mostly a style issue. It is common to always protect header files >> against multiple inclusion, unless the header is meant to be included >> several times (which is not the case for these confi

Re: [Qemu-devel] [PATCH v3] Softfloat: Add support to softfloat to return floatxx_default_nan when, the corresponding target status flag is set.

2011-02-21 Thread Aurelien Jarno
On Mon, Feb 21, 2011 at 05:44:49PM +0100, Aurelien Jarno wrote: > Sorry to come back so long after, just found time to do some tests. > > On Wed, Feb 09, 2011 at 06:56:50PM +, Peter Maydell wrote: > > On 9 February 2011 18:35, Aurelien Jarno wrote: > > > On Tue, Feb 08, 2011 at 08:06:57PM +00

Re: [Qemu-devel] [PATCH 2/5] Provide SSDT for enabled TPM device

2011-02-21 Thread Andreas Niederl
On 02/18/2011 06:02 PM, Stefan Berger wrote: [...] > Does it show up in Linux? I am trying to find the code that connects it > to the RSDT, but don't see any. Yes, it does. QEMU can provide ACPI tables over a BIOS config I/O port. SeaBIOS reads these in src/acpi.c:acpi_bios_init() and builds the

Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface

2011-02-21 Thread Andreas Niederl
On 02/18/2011 10:03 PM, Stefan Berger wrote: > On 02/18/2011 10:33 AM, Andreas Niederl wrote: [...] >> +static ISADeviceInfo tpm_info = { >> +.init = tpm_init, >> +.qdev.name = "tpm", >> +.qdev.desc = "TPM TIS Interface", >> +.qdev.size = sizeof (TPMState), >> +

[Qemu-devel] KVM Agenda for Feb 22

2011-02-21 Thread Juan Quintela
please send in any agenda items you are interested in covering. thanks, Juan.

Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface

2011-02-21 Thread Andreas Niederl
On 02/18/2011 09:27 PM, Stefan Berger wrote: > On 02/18/2011 12:37 PM, Andreas Niederl wrote: [...] >> So I'm guessing that this library is not publicly available right now? > Not via the fedora repository at least. So yum install does not work, yet. Is the source code available in a public versio

Re: [Qemu-devel] [PATCH] linux-user: fix compile failure if !CONFIG_USE_GUEST_BASE

2011-02-21 Thread Peter Maydell
Ping? On 10 February 2011 16:53, Peter Maydell wrote: > If CONFIG_USE_GUEST_BASE is not defined, gcc complains: >  linux-user/mmap.c:235: error: comparison of unsigned expression >= 0 is > always true > > because RESERVED_VA is #defined to 0. Since mmap_find_vma_reserved() > will never be called

Re: [Qemu-devel] [PATCH] hw/irq.h: Remove unused SetIRQFunc typedef

2011-02-21 Thread Aurelien Jarno
On Mon, Feb 21, 2011 at 02:58:26PM +, Peter Maydell wrote: > Remove the typedef SetIRQFunc, as it is not used by anything. > > Signed-off-by: Peter Maydell > --- > hw/irq.h |2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) Thanks, applied. > diff --git a/hw/irq.h b/hw/irq.h > i

Re: [Qemu-devel] [PATCH v3] Softfloat: Add support to softfloat to return floatxx_default_nan when, the corresponding target status flag is set.

2011-02-21 Thread Aurelien Jarno
Sorry to come back so long after, just found time to do some tests. On Wed, Feb 09, 2011 at 06:56:50PM +, Peter Maydell wrote: > On 9 February 2011 18:35, Aurelien Jarno wrote: > > On Tue, Feb 08, 2011 at 08:06:57PM +, Peter Maydell wrote: > >> On 8 February 2011 18:53, Peter Maydell wro

[Qemu-devel] Re: [PATCH 3/3] block/nbd: Make the NBD block device use the AIO interface

2011-02-21 Thread Kevin Wolf
Am 21.02.2011 17:31, schrieb Nicholas Thomas: > Hi again, > > Thanks for looking through the patches. I'm just going through and > making the suggested changes now. I've also got qemu-nbd and block/nbd.c > working over IPv6 :) - hopefully I'll be able to provide patches in a > couple of days. Just

Re: [Qemu-devel] [PATCH v2 0/2] target-arm: fix shift where src, dest overlap

2011-02-21 Thread Aurelien Jarno
On Mon, Feb 21, 2011 at 10:40:16AM +, Peter Maydell wrote: > This patchset is a replacement for the unapplied patch 10/10 > of my shift-fixes series (http://patchwork.ozlabs.org/patch/83248/) > which corrects the compilation failure. > > Since the fix involves refactoring to pull out some code

[Qemu-devel] [PATCH 5/5] target-arm: fix support for VRSQRTE.

2011-02-21 Thread Christophe Lyon
Now use the same algorithm as described in the ARM ARM. Signed-off-by: Christophe Lyon --- target-arm/helper.c | 123 ++ 1 files changed, 113 insertions(+), 10 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 031f2ec..185

Re: [Qemu-devel] [PATCH v4] PS/2 keyboard Scancode Set 3 support

2011-02-21 Thread Aurelien Jarno
On Mon, Feb 21, 2011 at 08:06:32AM +0800, Roy Tam wrote: > The following patch adds PS/2 keyboard Scancode Set 3 support. > > Sign-off-by: Roy Tam > -- > v4: fix comment > v3: change from switch to array, more style fixes > v2: checkpatch.pl style fixes Thanks, applied. > diff --git a/hw/ps2.c

[Qemu-devel] [PATCH 1/5] softfloat: move all default NaN definitions to softfloat.h.

2011-02-21 Thread Christophe Lyon
These special values are needed to implement some helper functions, which return/use these values in some cases. Signed-off-by: Christophe Lyon --- fpu/softfloat-specialize.h | 68 --- fpu/softfloat.h| 69 +++

Re: [Qemu-devel] [STABLE][PATCH] isa-bus: Remove bogus IRQ sharing check

2011-02-21 Thread Aurelien Jarno
On Sat, Feb 19, 2011 at 06:56:22PM +0100, Jan Kiszka wrote: > From: Jan Kiszka > > Nothing prevented IRQ sharing on the ISA bus in principle. Not all > boards supported this, neither each and every card nor driver and OS. > Still, there existed valid IRQ sharing scenarios, (at least) two of them

[Qemu-devel] [PATCH 4/5] target-arm: fix support for VRECPE.

2011-02-21 Thread Christophe Lyon
Now use the same algorithm as described in the ARM ARM. Signed-off-by: Christophe Lyon --- target-arm/helper.c | 83 +++--- 1 files changed, 71 insertions(+), 12 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 30c1809..031f

[Qemu-devel] [PATCH 2/5] softfloat: add _set_sign(), _infinity and _half for 32 and 64 bits floats.

2011-02-21 Thread Christophe Lyon
These constants and utility function are needed to implement some helpers. Defining constants avoids the need to re-compute them at runtime. Signed-off-by: Christophe Lyon --- fpu/softfloat.h | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat.h

[Qemu-devel] [PATCH 3/5] target-arm: Introduce float64_256 and float64_512 constants.

2011-02-21 Thread Christophe Lyon
These two constants will be used by helper functions such as recpe_f32 and rsqrte_f32. Signed-off-by: Christophe Lyon --- target-arm/helper.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 7f63a28..30c1809 100644 --- a

[Qemu-devel] [PATCH v6 0/5] ARM: fix Neon VRECPE and VRSQRTE instructions.

2011-02-21 Thread Christophe Lyon
These 5 patches fix the ARM Neon VRECPE and VRSQRTE instructions by matching the algorithms descibed in the ARM ARM. Patches #1 to #3 are unchanged compared to v4 Patches #4 and #5 should address Peter's comments. Christophe Lyon (5): softfloat: move all default NaN definitions to softfloat.h.

[Qemu-devel] Re: [PATCH 3/3] block/nbd: Make the NBD block device use the AIO interface

2011-02-21 Thread Nicholas Thomas
Hi again, Thanks for looking through the patches. I'm just going through and making the suggested changes now. I've also got qemu-nbd and block/nbd.c working over IPv6 :) - hopefully I'll be able to provide patches in a couple of days. Just a few questions about some of the changes... Canceled re

[Qemu-devel] [Bug 722311] Re: Segmentation fault if started without -enable-kvm parameter

2011-02-21 Thread Bug Reporter
It is a bit weird that www.qemu.org tells me to report my bugs on launchpad, but replies to my bug report then appear ONLY on the developer mailing list. How shall a lowly end-user know that he must look there, too? Anyway. On the developer mailing list, Markus Armbruster (Mon, 21 Feb 2011 09:00:2

Re: [Qemu-devel] Re: Strategic decision: COW format

2011-02-21 Thread Kevin Wolf
Am 21.02.2011 16:16, schrieb Anthony Liguori: > On 02/21/2011 08:10 AM, Kevin Wolf wrote: >> Am 21.02.2011 14:44, schrieb Stefan Hajnoczi: >> >>> On Mon, Feb 21, 2011 at 8:59 AM, Kevin Wolf wrote: >>> In fact, the only area where qcow2 in performs really bad in 0.14 is cache=wr

Re: [Qemu-devel] Re: Strategic decision: COW format

2011-02-21 Thread Anthony Liguori
On 02/21/2011 08:10 AM, Kevin Wolf wrote: Am 21.02.2011 14:44, schrieb Stefan Hajnoczi: On Mon, Feb 21, 2011 at 8:59 AM, Kevin Wolf wrote: In fact, the only area where qcow2 in performs really bad in 0.14 is cache=writethrough (which unfortunately is the default...). With cache=none

[Qemu-devel] [PATCH] hw/irq.h: Remove unused SetIRQFunc typedef

2011-02-21 Thread Peter Maydell
Remove the typedef SetIRQFunc, as it is not used by anything. Signed-off-by: Peter Maydell --- hw/irq.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/hw/irq.h b/hw/irq.h index 5daae44..f7849ed 100644 --- a/hw/irq.h +++ b/hw/irq.h @@ -3,9 +3,7 @@ /* Generic IRQ/GPIO

[Qemu-devel] [Bug 697197] Re: Empty password allows access to VNC in libvirt

2011-02-21 Thread Marc Deslauriers
Nothing left to do, unsubscribing ubuntu-security-sponsors. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/697197 Title: Empty password allows access to VNC in libvirt Status in libvirt virtualizat

Re: [Qemu-devel] Re: Strategic decision: COW format

2011-02-21 Thread Kevin Wolf
Am 21.02.2011 14:44, schrieb Stefan Hajnoczi: > On Mon, Feb 21, 2011 at 8:59 AM, Kevin Wolf wrote: >> In fact, the only area where qcow2 in performs really bad in 0.14 is >> cache=writethrough (which unfortunately is the default...). With >> cache=none it's easy to find scenarios where it provides

[Qemu-devel] [PATCH 1/2] pls3adsp1800: Base load_elf endianness on target endianness

2011-02-21 Thread Edgar E. Iglesias
Signed-off-by: Edgar E. Iglesias --- hw/petalogix_s3adsp1800_mmu.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/petalogix_s3adsp1800_mmu.c b/hw/petalogix_s3adsp1800_mmu.c index 42de459..6ef4e65 100644 --- a/hw/petalogix_s3adsp1800_mmu.c +++ b/hw/petalogix_s3

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

2011-02-21 Thread Brian Wheeler
This patch fixes two things: 1) CHECK POWER MODE The error return value wasn't always zero, so it would show up as offline. Error is now explicitly set to zero. 2) SMART The smart values that were returned were invalid and tools like skdump would not recognize that the smart data was act

Re: [Qemu-devel] Re: Strategic decision: COW format

2011-02-21 Thread Stefan Hajnoczi
On Mon, Feb 21, 2011 at 8:59 AM, Kevin Wolf wrote: > In fact, the only area where qcow2 in performs really bad in 0.14 is > cache=writethrough (which unfortunately is the default...). With > cache=none it's easy to find scenarios where it provides higher > throughput than QED. Yeah, I'm tempted t

[Qemu-devel] [PATCH 2/2] microblaze: Allow targeting little-endian mb

2011-02-21 Thread Edgar E. Iglesias
Signed-off-by: Edgar E. Iglesias --- configure |7 +-- default-configs/microblazeel-linux-user.mak |1 + default-configs/microblazeel-softmmu.mak|4 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 default-configs/mic

Re: [Qemu-devel] [RFC][PATCH v6 00/23] virtagent: host/guest RPC communication agent

2011-02-21 Thread Jes Sorensen
On 02/21/11 14:36, Michael Roth wrote: > On 02/21/2011 02:32 AM, Jes Sorensen wrote: >> Well that isn't really different from the current setup - if QEMU >> migrates, the admin tool has to connect to the new QEMU process and >> issue the fsthaw command there instead. >> > > Another thing to consid

Re: [Qemu-devel] [RFC][PATCH v6 00/23] virtagent: host/guest RPC communication agent

2011-02-21 Thread Michael Roth
On 02/21/2011 02:32 AM, Jes Sorensen wrote: On 02/18/11 15:57, Anthony Liguori wrote: On 02/18/2011 08:30 AM, Jes Sorensen wrote: However if there's an agent connection, it could be arranged in a way allowing the host to reconnect to the guest agent. In that way it really shouldn't be a big dea

[Qemu-devel] Re: [PATCH 3/3] block/nbd: Make the NBD block device use the AIO interface

2011-02-21 Thread Kevin Wolf
Am 18.02.2011 13:55, schrieb Nick Thomas: > This preserves the previous behaviour where the NBD server is > unavailable or goes away during guest execution, but switches the > NBD backend to present the AIO interface instead of the sync IO > interface. > > We also split write requests into 1 MiB b

[Qemu-devel] Re: [PATCH 1/3] NBD library: whitespace changes

2011-02-21 Thread Kevin Wolf
Am 18.02.2011 13:55, schrieb Nick Thomas: > --- > nbd.c | 835 > + > 1 files changed, 418 insertions(+), 417 deletions(-) Patch 1 and 3 are lacking a Signed-off-by. Kevin

[Qemu-devel] Re: [PATCH 2/3] NBD library: add aio-compatible read/write function

2011-02-21 Thread Kevin Wolf
Am 18.02.2011 13:55, schrieb Nick Thomas: > Signed-off-by: Nicholas Thomas > --- > nbd.c | 51 +++ > nbd.h |2 ++ > 2 files changed, 53 insertions(+), 0 deletions(-) > > diff --git a/nbd.c b/nbd.c > index abe0ecb..83d3342 100644 > --- a/nbd.c

[Qemu-devel] Re: [PATCH 21/21] add Win32 IPI service

2011-02-21 Thread Jan Kiszka
On 2011-02-21 13:15, Paolo Bonzini wrote: > On 02/21/2011 01:00 PM, Jan Kiszka wrote: >> qemu_thread_* services do not truly belong here. >> >> What about defining SIG_IPI as QEMU_SIG_KICK which would be provided by >> qemu-thread-posix.h? Then the qemu-thread-posix.c could implement >> qemu_thread

[Qemu-devel] Re: [PATCH 21/21] add Win32 IPI service

2011-02-21 Thread Paolo Bonzini
On 02/21/2011 01:00 PM, Jan Kiszka wrote: qemu_thread_* services do not truly belong here. What about defining SIG_IPI as QEMU_SIG_KICK which would be provided by qemu-thread-posix.h? Then the qemu-thread-posix.c could implement qemu_thread_kick() again. The function is really specific to VCPU

Re: [Qemu-devel] Re: Network bridging without adding bridge with brctl, possible?

2011-02-21 Thread Arnd Bergmann
On Monday 21 February 2011, Jan Kiszka wrote: > > Now I think I tried all useful possible combinations: > > 1.) macvtap0 and macvlan0 in bridged and non bridge mode > > 2.) macvlan0 based on eth0 or based on macvtap0 > > 3.) Using and ip address on macvlan0 or not (tried both for 7b mac and > > 7c

Re: [Qemu-devel] [PATCH 5/5] target-arm: fix support for VRSQRTE.

2011-02-21 Thread Peter Maydell
On 21 February 2011 10:59, Christophe Lyon wrote: > +    if (float32_is_any_nan(a)) { > +        if (float32_is_signaling_nan(a)) { > +            float_raise(float_flag_invalid, s); > +        } > +        return float32_maybe_silence_nan(a); Wrong answer for NaNs, fix as per comments in other p

[Qemu-devel] Re: [PATCH 21/21] add Win32 IPI service

2011-02-21 Thread Jan Kiszka
On 2011-02-21 09:43, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > cpus.c | 23 --- > qemu-thread-posix.c |9 - > qemu-thread-posix.h |1 - > 3 files changed, 20 insertions(+), 13 deletions(-) > > diff --git a/cpus.c b/cpus.c > ind

Re: [Qemu-devel] [PATCH 3/5] target-arm: Introduce float64_256 and float64_512 constants.

2011-02-21 Thread Peter Maydell
On 21 February 2011 10:59, Christophe Lyon wrote: > These two constants will be used by helper functions such as recpe_f32 > and rsqrte_f32. > > Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell

Re: [Qemu-devel] [PATCH 2/5] softfloat: add _set_sign(), _infinity and _half for 32 and 64 bits floats.

2011-02-21 Thread Peter Maydell
On 21 February 2011 10:59, Christophe Lyon wrote: > These constants and utility function are needed to implement some > helpers. Defining constants avoids the need to re-compute them at > runtime. > > Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH 1/5] softfloat: move all default NaN definitions to softfloat.h.

2011-02-21 Thread Peter Maydell
On 21 February 2011 10:59, Christophe Lyon wrote: > These special values are needed to implement some helper functions, > which return/use these values in some cases. > > Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell

Re: [Qemu-devel] [PATCH 4/5] target-arm: fix support for VRECPE.

2011-02-21 Thread Peter Maydell
On 21 February 2011 10:59, Christophe Lyon wrote: > +    if (float32_is_any_nan(a)) { > +        if (float32_is_signaling_nan(a)) { > +            float_raise(float_flag_invalid, s); > +        } > +        return float32_maybe_silence_nan(a); This returns the wrong answer for NaNs: this is a Ne

[Qemu-devel] RE: Vhost support

2011-02-21 Thread Liu Yu-B13201
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Monday, February 21, 2011 7:46 PM > To: Liu Yu-B13201 > Cc: qemu-devel@nongnu.org; Yoder Stuart-B08248 > Subject: Re: Vhost support > > On Mon, Feb 21, 2011 at 11:41:39AM +, Liu Yu-B13201 wrote: > >

[Qemu-devel] [PATCH] Fixing tap adapter for win32

2011-02-21 Thread Pavel Dovgaluk
This fix allows connection of internal VLAN to the external TAP interface. If tap_win32_write function always returns 0, the TAP network interface in QEMU is disabled. Signed-off-by: Pavel Dovgalyuk --- net/tap-win32.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/n

[Qemu-devel] [PATCH] Fixing network over sockets implementation for win32

2011-02-21 Thread Pavel Dovgaluk
MSDN includes the following in WSAEALREADY error description for connect() function: "To preserve backward compatibility, this error is reported as WSAEINVAL to Winsock applications that link to either Winsock.dll or Wsock32.dll". So check of this error code was added to allow network connecti

[Qemu-devel] Re: Vhost support

2011-02-21 Thread Michael S. Tsirkin
On Mon, Feb 21, 2011 at 11:41:39AM +, Liu Yu-B13201 wrote: > > > > -Original Message- > > From: Michael S. Tsirkin [mailto:m...@redhat.com] > > Sent: Monday, February 21, 2011 7:22 PM > > To: Liu Yu-B13201 > > Cc: qemu-devel@nongnu.org; Yoder Stuart-B08248 > > Subject: Re: Vhost sup

[Qemu-devel] RE: Vhost support

2011-02-21 Thread Liu Yu-B13201
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Monday, February 21, 2011 7:22 PM > To: Liu Yu-B13201 > Cc: qemu-devel@nongnu.org; Yoder Stuart-B08248 > Subject: Re: Vhost support > > On Mon, Feb 21, 2011 at 11:13:33AM +, Liu Yu-B13201 wrote: > > >

Re: [Qemu-devel] [PATCH 1/2] block/vdi: Don't ignore immediate read/write failures

2011-02-21 Thread Kevin Wolf
Am 19.02.2011 22:18, schrieb Stefan Weil: > This patch is similar to 171e3d6b9997c98a97d0c525867f7cd9b640cadd > which fixed qcow2: > > Returning -EIO is far from optimal, but at least it's an error code. > > Cc: Kevin Wolf > Signed-off-by: Stefan Weil Thanks, applied both to the block branch.

Re: [Qemu-devel] [PATCH v3 0/2] target-arm: fix shift where src, dest overlap

2011-02-21 Thread Peter Maydell
On 21 February 2011 11:05, Peter Maydell wrote: > Change from v3: removed two now-unnecessary uses of TCGV_UNUSED > (forgot to stg refresh before sending out patch series, sorry.) ...obviously I meant "Change from v2". Ah, Monday mornings :-) -- PMM

[Qemu-devel] Re: Vhost support

2011-02-21 Thread Michael S. Tsirkin
On Mon, Feb 21, 2011 at 11:13:33AM +, Liu Yu-B13201 wrote: > > Hello everyone, > > Does anyone know the status of vhost in upstream qemu? > We would like to try vhost with kvm on powerpc e500v2 platform, > but obviously, powerpc kvm only works with upstream qemu. > > KVM wike page says it ne

[Qemu-devel] [PATCH v3 1/2] target-arm: Refactor to pull narrowing decode into separate function

2011-02-21 Thread Peter Maydell
Pull the code which decodes narrowing operations as being either signed/unsigned saturate or plain out into its own function. Signed-off-by: Peter Maydell --- target-arm/translate.c | 45 +++-- 1 files changed, 19 insertions(+), 26 deletions(-) diff --g

[Qemu-devel] Vhost support

2011-02-21 Thread Liu Yu-B13201
Hello everyone, Does anyone know the status of vhost in upstream qemu? We would like to try vhost with kvm on powerpc e500v2 platform, but obviously, powerpc kvm only works with upstream qemu. KVM wike page says it needs to enable CONFIG_PCI_MSI for guest kernel. Is MSI a necessary? Thanks, Yu

[Qemu-devel] Re: [PATCH 04/21] replace qemu_thread_equal API with qemu_thread_is_current

2011-02-21 Thread Paolo Bonzini
On 02/21/2011 10:41 AM, Jan Kiszka wrote: I'm now in favor of an even more consistent refactoring: qemu_thread_is_self, qemu_thread_get_self, and qemu_cpu_is_self. See [1]. Jan [1] http://git.kiszka.org/?p=qemu-kvm.git;a=commitdiff;h=f5b278f5aec06fe4d140f68caf9b1bf17b4809b2 Ok, I'll replace t

[Qemu-devel] [PATCH v3 2/2] target-arm: Fix shift by immediate and narrow where src, dest overlap

2011-02-21 Thread Peter Maydell
For Neon shifts by immediate and narrow, correctly handle the case where the source registers and the destination registers overlap (the second pass should use the original register contents, not the results of the first pass). This includes a refactoring to pull the size check outside the loop ra

[Qemu-devel] [PATCH v3 0/2] target-arm: fix shift where src, dest overlap

2011-02-21 Thread Peter Maydell
This patchset is a replacement for the unapplied patch 10/10 of my shift-fixes series (http://patchwork.ozlabs.org/patch/83248/) which corrects the compilation failure. Since the fix involves refactoring to pull out some code into a separate function and then pulling the size check outside of the

[Qemu-devel] [PATCH v5 0/5] ARM: fix Neon VRECPE and VRSQRTE instructions.

2011-02-21 Thread Christophe Lyon
These 5 patches fix the ARM Neon VRECPE and VRSQRTE instructions by matching the algorithms descibed in the ARM ARM. Patches #1 and the last two are unchanged compared to v4 (except that patches 3 and 4 are now 4 and 5). V4 patch #2 has been split into #2 and #3, to take Aurelien Jarno's comments

[Qemu-devel] [PATCH 1/5] softfloat: move all default NaN definitions to softfloat.h.

2011-02-21 Thread Christophe Lyon
These special values are needed to implement some helper functions, which return/use these values in some cases. Signed-off-by: Christophe Lyon --- fpu/softfloat-specialize.h | 68 --- fpu/softfloat.h| 69 +++

[Qemu-devel] [PATCH 4/5] target-arm: fix support for VRECPE.

2011-02-21 Thread Christophe Lyon
Now use the same algorithm as described in the ARM ARM. Signed-off-by: Christophe Lyon --- target-arm/helper.c | 83 +++--- 1 files changed, 71 insertions(+), 12 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 30c1809..7445

[Qemu-devel] [PATCH 5/5] target-arm: fix support for VRSQRTE.

2011-02-21 Thread Christophe Lyon
Now use the same algorithm as described in the ARM ARM. Signed-off-by: Christophe Lyon --- target-arm/helper.c | 121 ++ 1 files changed, 111 insertions(+), 10 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 7445def..24d

[Qemu-devel] [PATCH 2/5] softfloat: add _set_sign(), _infinity and _half for 32 and 64 bits floats.

2011-02-21 Thread Christophe Lyon
These constants and utility function are needed to implement some helpers. Defining constants avoids the need to re-compute them at runtime. Signed-off-by: Christophe Lyon --- fpu/softfloat.h | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat.h

[Qemu-devel] [PATCH 3/5] target-arm: Introduce float64_256 and float64_512 constants.

2011-02-21 Thread Christophe Lyon
These two constants will be used by helper functions such as recpe_f32 and rsqrte_f32. Signed-off-by: Christophe Lyon --- target-arm/helper.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 7f63a28..30c1809 100644 --- a

[Qemu-devel] [PATCH v2 2/2] target-arm: Fix shift by immediate and narrow where src, dest overlap

2011-02-21 Thread Peter Maydell
For Neon shifts by immediate and narrow, correctly handle the case where the source registers and the destination registers overlap (the second pass should use the original register contents, not the results of the first pass). This includes a refactoring to pull the size check outside the loop ra

[Qemu-devel] [PATCH v2 1/2] target-arm: Refactor to pull narrowing decode into separate function

2011-02-21 Thread Peter Maydell
Pull the code which decodes narrowing operations as being either signed/unsigned saturate or plain out into its own function. Signed-off-by: Peter Maydell --- target-arm/translate.c | 45 +++-- 1 files changed, 19 insertions(+), 26 deletions(-) diff --g

[Qemu-devel] [PATCH v2 0/2] target-arm: fix shift where src, dest overlap

2011-02-21 Thread Peter Maydell
This patchset is a replacement for the unapplied patch 10/10 of my shift-fixes series (http://patchwork.ozlabs.org/patch/83248/) which corrects the compilation failure. Since the fix involves refactoring to pull out some code into a separate function and then pulling the size check outside of the

[Qemu-devel] Re: [PATCH 18/21] move blocking of signals to qemu_signalfd_init

2011-02-21 Thread Jan Kiszka
On 2011-02-21 11:20, Paolo Bonzini wrote: > On 02/21/2011 11:12 AM, Jan Kiszka wrote: >> On 2011-02-21 09:43, Paolo Bonzini wrote: >>> This makes it easier to add a Win32 stub. The patch does that, too. >>> >>> Signed-off-by: Paolo Bonzini >>> --- >>> cpus.c | 87 >>> +

[Qemu-devel] Re: [PATCH 07/21] add assertions on the owner of a QemuMutex

2011-02-21 Thread Paolo Bonzini
On 02/21/2011 11:22 AM, Jan Kiszka wrote: That's easy, "p" will tell (the structure contains the owner's tid). And for debugging invalid mutex_unlock calls, it's more interesting to track the call path of that thread which incorrectly claimed to hold the lock. Ok, will remove. Paolo

[Qemu-devel] Re: [PATCH 07/21] add assertions on the owner of a QemuMutex

2011-02-21 Thread Jan Kiszka
On 2011-02-21 11:15, Paolo Bonzini wrote: > On 02/21/2011 10:50 AM, Jan Kiszka wrote: +/* An EDEADLOCK would arrive after we reset the owner. So this + assert is for ease of debugging (it lets you see what is the + actual owner. */ >> >> Don't get this. Why do yo

[Qemu-devel] Re: [PATCH 18/21] move blocking of signals to qemu_signalfd_init

2011-02-21 Thread Paolo Bonzini
On 02/21/2011 11:12 AM, Jan Kiszka wrote: On 2011-02-21 09:43, Paolo Bonzini wrote: This makes it easier to add a Win32 stub. The patch does that, too. Signed-off-by: Paolo Bonzini --- cpus.c | 87 ++- 1 files changed, 36 inserti

[Qemu-devel] Re: [PATCH 07/21] add assertions on the owner of a QemuMutex

2011-02-21 Thread Paolo Bonzini
On 02/21/2011 10:50 AM, Jan Kiszka wrote: > +/* An EDEADLOCK would arrive after we reset the owner. So this > + assert is for ease of debugging (it lets you see what is the > + actual owner. */ Don't get this. Why do you want to avoid the proper error detection of pthread?

[Qemu-devel] Re: [PATCH 18/21] move blocking of signals to qemu_signalfd_init

2011-02-21 Thread Jan Kiszka
On 2011-02-21 09:43, Paolo Bonzini wrote: > This makes it easier to add a Win32 stub. The patch does that, too. > > Signed-off-by: Paolo Bonzini > --- > cpus.c | 87 ++- > 1 files changed, 36 insertions(+), 51 deletions(-) > > diff

Re: [Qemu-devel] [PATCH 2/4] softfloat: add float32_set_sign(), float32_infinity, float64_half, float64_256 and float64_512.

2011-02-21 Thread Christophe Lyon
On 20.02.2011 23:20, Aurelien Jarno wrote: > On Sun, Feb 20, 2011 at 10:09:46PM +, Peter Maydell wrote: >> On 20 February 2011 21:52, Aurelien Jarno wrote: >>> While it's probably a good idea to define the commonly used values in >>> softfloat.h, I don't think we should have all the values use

[Qemu-devel] Re: [PATCH 07/21] add assertions on the owner of a QemuMutex

2011-02-21 Thread Jan Kiszka
On 2011-02-21 09:43, Paolo Bonzini wrote: > These are already present in the Win32 implementation, add them to > the pthread wrappers as well. > > Signed-off-by: Paolo Bonzini > --- > qemu-thread-posix.c | 27 +-- > qemu-thread-posix.h |1 + > 2 files changed, 26 in

[Qemu-devel] [PATCH RESEND] char: Prevent multiple devices opening same chardev

2011-02-21 Thread Amit Shah
Prevent: -chardev socket,path=/tmp/foo,server,nowait,id=c0 \ -device virtserialport,chardev=c0,id=vs0 \ -device virtserialport,chardev=c0,id=vs1 Reported-by: Mike Cao Signed-off-by: Amit Shah --- hw/qdev-properties.c |7 ++- qemu-char.h |1 + 2 files changed, 7 insertions(

[Qemu-devel] [PATCH RESEND 3/3] virtio-serial: Enable ioeventfd

2011-02-21 Thread Amit Shah
Enable ioeventfd for virtio-serial devices by default. Commit 25db9ebe15125deb32958c6df74996f745edf1f9 lists the benefits of using ioeventfd. Copying a file from guest to host over a virtio-serial channel didn't show much difference in time or io_exit rate. Signed-off-by: Amit Shah --- hw/virt

[Qemu-devel] Re: [PATCH 10/21] always qemu_cpu_kick after unhalting a cpu

2011-02-21 Thread Jan Kiszka
On 2011-02-21 09:43, Paolo Bonzini wrote: > This ensures env->halt_cond is broadcast, and the loop in > qemu_tcg_wait_io_event and qemu_kvm_wait_io_event is exited > naturally rather than through a timeout. > > Signed-off-by: Paolo Bonzini > --- > hw/apic.c |1 + > hw/ppc.c

Re: [Qemu-devel] Re: Strategic decision: COW format

2011-02-21 Thread Kevin Wolf
Am 20.02.2011 23:13, schrieb Aurelien Jarno: > On Fri, Feb 18, 2011 at 10:57:05AM +0100, Kevin Wolf wrote: >> Am 18.02.2011 10:12, schrieb Markus Armbruster: >>> Kevin Wolf writes: >>> Am 15.02.2011 20:45, schrieb Chunqiang Tang: >> Chunqiang Tang/Watson/IBM wrote on 01/28/2011 05:13:27 P

Re: [Qemu-devel] Re: [PATCH 07/18] Introduce fault tolerant VM transaction QEMUFile and ft_mode.

2011-02-21 Thread Yoshiaki Tamura
Hi Green, 2011/2/21 ya su : > Yoshiaki: > >     I have one question about ram_save_live, during migration 3 > stage(completation stage), it will call > cpu_physical_memory_set_dirty_tracking(0) to stop recording ram dirty pages. > at the end of migrate_ft_trans_connect function, it will invoke vm_

[Qemu-devel] [PATCH RESEND 1/3] virtio-serial: Use a struct to pass config information from proxy

2011-02-21 Thread Amit Shah
Instead of using a single variable to pass to the virtio_serial_init function, use a struct so that expanding the number of variables to be passed on later is easier. Signed-off-by: Amit Shah --- hw/virtio-pci.c| 12 ++-- hw/virtio-serial-bus.c | 16 hw/virti

[Qemu-devel] [PATCH 1/4] do not use qemu_icount_delta in the !use_icount case

2011-02-21 Thread Paolo Bonzini
The !use_icount code is the same for iothread and non-iothread, except that the timeout is different. Since the timeout might as well be infinite and is only masking bugs, use the higher value. With this change the !use_icount code is handled equivalently in qemu_icount_delta and qemu_calculate_ti

  1   2   >