Re: [Qemu-devel] [PATCH 1/2] hpet: entitle more irq pins for hpet

2013-08-24 Thread Paolo Bonzini
Il 25/08/2013 04:16, Liu Ping Fan ha scritto: > On PC, IRQ2/8 can be reserved for hpet timer 0/1. And pin 16~23 of > ioapic can be dynamically assigned to hpet as guest chooses. > > Signed-off-by: Liu Ping Fan > --- > hw/timer/hpet.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-)

Re: [Qemu-devel] [PATCH 2/2] hpet: inverse polarity when pin above ISA_NUM_IRQS

2013-08-24 Thread Paolo Bonzini
Il 25/08/2013 04:16, Liu Ping Fan ha scritto: > According to hpet spec, hpet irq is high active. But according to > ICH spec, there is inversion before the input of ioapic. So the OS > will expect low active on this IRQ line.(And this is observed on > bare metal). > > We fold the emulation of this

Re: [Qemu-devel] [RFC PATCH] Introduce RCU-enabled DQs (v2)

2013-08-24 Thread Paolo Bonzini
Il 24/08/2013 21:06, Mike Day ha scritto: > Add RCU-enabled variants on the existing bsd DQ facility. Each Q > operation has the same interface as the existing (non-RCU) > version. Also, each operation is implemented as macro for now. > > Using the RCU-enabled DQ, existing DQ users will be able to

Re: [Qemu-devel] Disable scaling of SDL

2013-08-24 Thread Stefan Weil
Am 25.08.2013 07:58, schrieb Taimoor Mirza: > Hi Stefan, > > Thanks for your reply. Is there any way I can disable scaling in SDL > library? I've not used SDL before and I am not sure whether there is > some configuration option for it or not? > > -Taimoor > Scaling is implemented in QEMU's code,

Re: [Qemu-devel] Disable scaling of SDL

2013-08-24 Thread Taimoor Mirza
Hi Stefan, Thanks for your reply. Is there any way I can disable scaling in SDL library? I've not used SDL before and I am not sure whether there is some configuration option for it or not? -Taimoor On Sat, Aug 24, 2013 at 11:47 PM, Stefan Weil wrote: > Am 24.08.2013 15:43, schrieb Taimoor Mirz

[Qemu-devel] [PATCH 1/2] hpet: entitle more irq pins for hpet

2013-08-24 Thread Liu Ping Fan
On PC, IRQ2/8 can be reserved for hpet timer 0/1. And pin 16~23 of ioapic can be dynamically assigned to hpet as guest chooses. Signed-off-by: Liu Ping Fan --- hw/timer/hpet.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index 648b38

[Qemu-devel] [PATCH 2/2] hpet: inverse polarity when pin above ISA_NUM_IRQS

2013-08-24 Thread Liu Ping Fan
According to hpet spec, hpet irq is high active. But according to ICH spec, there is inversion before the input of ioapic. So the OS will expect low active on this IRQ line.(And this is observed on bare metal). We fold the emulation of this inversion inside the hpet logic. Signed-off-by: Liu Ping

[Qemu-devel] [PATCH v4 3/3] slirp: set mainloop timeout with more precise value

2013-08-24 Thread Liu Ping Fan
If slirp needs to emulate tcp timeout, then the timeout value for mainloop should be more precise, which is determined by slirp's fasttimo or slowtimo. Achieve this by swap the logic sequence of slirp_pollfds_fill and slirp_update_timeout. Signed-off-by: Liu Ping Fan --- main-loop.c | 3 +-

[Qemu-devel] [PATCH v4 2/3] slirp: define timeout as macro

2013-08-24 Thread Liu Ping Fan
Signed-off-by: Liu Ping Fan --- slirp/slirp.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/slirp/slirp.c b/slirp/slirp.c index b71c617..c47af8f 100644 --- a/slirp/slirp.c +++ b/slirp/slirp.c @@ -47,6 +47,11 @@ static QTAILQ_HEAD(slirp_instances, Slirp) sl

[Qemu-devel] [PATCH v4 1/3] slirp: make timeout local

2013-08-24 Thread Liu Ping Fan
Each slirp has its own time to caculate timeout. Signed-off-by: Liu Ping Fan --- slirp/slirp.c | 22 ++ slirp/slirp.h | 3 +++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/slirp/slirp.c b/slirp/slirp.c index 80b28ea..b71c617 100644 --- a/slirp/slirp.c +++

[Qemu-devel] [PATCH v4 0/3] slirp: fill mainloop with more precise timeout value

2013-08-24 Thread Liu Ping Fan
With this series, we can set the mainloop timeout more precisely when slirp has to emulate tcp timeout problem. v4: use macro TIMEOUT_DEFAULT to define the default timeout of slirp and document it. v3: fix comment: document timeout unit "milliseconds" fix logic: no slirps, no timeout modif

Re: [Qemu-devel] [PATCH v3 3/3] slirp: set mainloop timeout with more precise value

2013-08-24 Thread liu ping fan
On Sat, Aug 24, 2013 at 12:54 AM, Jan Kiszka wrote: > On 2013-08-21 04:15, Liu Ping Fan wrote: >> If slirp needs to emulate tcp timeout, then the timeout value >> for mainloop should be more precise, which is determined by >> slirp's fasttimo or slowtimo. Achieve this by swap the logic >> sequence

Re: [Qemu-devel] [PATCH v3 3/3] slirp: set mainloop timeout with more precise value

2013-08-24 Thread liu ping fan
On Sat, Aug 24, 2013 at 12:49 AM, Jan Kiszka wrote: > On 2013-08-21 10:07, liu ping fan wrote: >> On Wed, Aug 21, 2013 at 3:36 PM, Alex Bligh wrote: >>> >>> >>> --On 21 August 2013 10:15:52 +0800 Liu Ping Fan wrote: >>> -void slirp_update_timeout(uint32_t *timeout) +static void slirp_u

[Qemu-devel] [PATCH] target-xtensa: add in_asm logging

2013-08-24 Thread Max Filippov
Signed-off-by: Max Filippov --- target-xtensa/translate.c | 8 1 file changed, 8 insertions(+) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 504cc53..c82d988 100644 --- a/target-xtensa/translate.c +++ b/target-xtensa/translate.c @@ -3018,6 +3018,14 @@ void gen

[Qemu-devel] [RFC PATCH] Introduce RCU-enabled DQs (v2)

2013-08-24 Thread Mike Day
Add RCU-enabled variants on the existing bsd DQ facility. Each Q operation has the same interface as the existing (non-RCU) version. Also, each operation is implemented as macro for now. Using the RCU-enabled DQ, existing DQ users will be able to convert to RCU without using a different list inter

Re: [Qemu-devel] Disable scaling of SDL

2013-08-24 Thread Stefan Weil
Am 24.08.2013 15:43, schrieb Taimoor Mirza: > Hi guys, > > I am using QEMU with SDL support to run some demo applications. > Problem I am facing is that fonts in my SDL window are not displayed > properly. I have to press Ctrl+Alt+u to undo scaling. After that fonts > display correctly. > Is there

[Qemu-devel] [Bug 1198350] Re: USB pass-through fails with USBDEVFS_DISCONNECT: Invalid argument

2013-08-24 Thread Mike
I also have this issue. Does anyone have a work around? (it works with Virtual Box) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1198350 Title: USB pass-through fails with USBDEVFS_DISCONNECT: Inv

Re: [Qemu-devel] [PATCH] sun4m: Add FCode ROM for TCX framebuffer

2013-08-24 Thread Andreas Färber
Am 21.08.2013 20:52, schrieb Mark Cave-Ayland: > On 21/08/13 18:54, Andreas Färber wrote: > >>> Shouldn't this blob come in the same patch as an update to some >>> git module, so that we keep track of the sources used to build >>> the blob? >> >> I concur. Independent of how to order the .gitmodul

[Qemu-devel] [Bug 1216368] [NEW] unsupported screen resolution crashes sdl-qemu

2013-08-24 Thread Sascha Krissler
Public bug reported: if the (windows) guest sets a screen resolution that the SDL backend does not support, qemu does an exit(1). with this fix, the the resolution is still wrong (only part of the desktop is displayed), but qemu keeps running and the guest can auto-revert the video mode: ui/sdl

[Qemu-devel] [Bug 1191326] Re: QNX 4 doesn't boot on qemu >= 1.3

2013-08-24 Thread Andreas Färber
Please use git-bisect to find out which change between 1.2.0 and 1.3.0 broke things for you. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1191326 Title: QNX 4 doesn't boot on qemu >= 1.3 Status i

Re: [Qemu-devel] [PATCH] kvm: sync cpu state on internal error before dump

2013-08-24 Thread Andreas Färber
Am 24.08.2013 12:37, schrieb Gleb Natapov: > On Fri, Aug 23, 2013 at 02:41:13PM +0100, James Hogan wrote: >> On 23/08/13 13:58, Gleb Natapov wrote: >>> On Fri, Aug 23, 2013 at 01:26:00PM +0100, James Hogan wrote: When a KVM internal error occurs QEMU dumps the CPU state, however it doesn'

[Qemu-devel] Changes to QEMU's timer system

2013-08-24 Thread Alex Bligh
I did a blog post on the aio-timers changes I made to the timer system, including a diagram of how it works now: http://blog.alex.org.uk/2013/08/24/changes-to-qemus-timer-system/ Comments welcome. -- Alex Bligh

[Qemu-devel] Disable scaling of SDL

2013-08-24 Thread Taimoor Mirza
Hi guys, I am using QEMU with SDL support to run some demo applications. Problem I am facing is that fonts in my SDL window are not displayed properly. I have to press Ctrl+Alt+u to undo scaling. After that fonts display correctly. Is there any way I can disable scaling in SDL window? Thanks, Tai

Re: [Qemu-devel] [PATCH] sun4m: Add FCode ROM for TCX framebuffer

2013-08-24 Thread Mark Cave-Ayland
On 21/08/13 18:06, Peter Maydell wrote: Okay so in that case what is the best way to manage to process? If both this and the follow-up patchset are committed first without the associated FCode ROM images then qemu-system-sparc will be broken until the main OpenBIOS images are updated because (qu

Re: [Qemu-devel] [qemu-devel] [PATCH v2] target-i386: Fix segment cache dump

2013-08-24 Thread Peter Maydell
On 23 August 2013 20:09, Tobias Markus wrote: > When in Long Mode, cpu_x86_seg_cache() logs "DS16" because the Default > operation size bit (D/B bit) is not set for Long Mode Data Segments since > there are only Data Segments in Long Mode and no explicit 16/32/64-bit > Descriptors. > This patch

Re: [Qemu-devel] [PATCH 2/2] target-arm: Avoid "1 << 31" undefined behaviour

2013-08-24 Thread Peter Maydell
On 23 August 2013 19:11, Richard Henderson wrote: > On 08/23/2013 09:12 AM, Peter Maydell wrote: >> #define CPSR_V (1 << 28) >> #define CPSR_C (1 << 29) >> #define CPSR_Z (1 << 30) >> -#define CPSR_N (1 << 31) >> +#define CPSR_N (1U << 31) >> #define CPSR_NZCV (CPSR_N | CPSR_Z | CPSR_C | CPSR_

Re: [Qemu-devel] [PATCH] kvm: sync cpu state on internal error before dump

2013-08-24 Thread Gleb Natapov
On Fri, Aug 23, 2013 at 02:41:13PM +0100, James Hogan wrote: > On 23/08/13 13:58, Gleb Natapov wrote: > > On Fri, Aug 23, 2013 at 01:26:00PM +0100, James Hogan wrote: > >> When a KVM internal error occurs QEMU dumps the CPU state, however it > >> doesn't synchronise the state from KVM first so the

Re: [Qemu-devel] [PATCH 1/4] kvm: Update headers for device control api

2013-08-24 Thread Peter Maydell
On 23 August 2013 20:40, Christoffer Dall wrote: > Update the KVM kernel headers to add support for the device control API > on ARM used to create in-kernel devices and set and get attributes on > these. > > This is needed for VGIC save/restore with KVM ARM targets. > > Headers are included from:

Re: [Qemu-devel] [PATCH 1/2] target-arm: Use sextract32() in branch decode

2013-08-24 Thread Peter Maydell
On 23 August 2013 19:09, Richard Henderson wrote: > On 08/23/2013 09:12 AM, Peter Maydell wrote: >> -offset = (((int32_t)insn << 8) >> 8); >> -val += (offset << 2) + 4; >> +offset = sextract32(insn << 2, 0, 26); >> +val += offset + 4;