Re: [Qemu-devel] [PATCH 5/6] PPC: booke206: Check for min/max TLB entry size

2012-01-20 Thread Paolo Bonzini
On 01/20/2012 04:17 AM, Alexander Graf wrote: +if ((size_tlb > size_max) || (size_tlb < size_max)) { You want < size_min, and the extra parentheses look odd. +/* set to min size */ +tlb->mas1&= ~MAS1_TSIZE_MASK; +tlb->mas1 |= size_min<< (MAS1_TSIZE_SHIFT + 1); +

Re: [Qemu-devel] [PATCH 5/6] PPC: booke206: Check for min/max TLB entry size

2012-01-20 Thread Andreas Färber
Am 20.01.2012 04:17, schrieb Alexander Graf: > When setting a TLB entry, we need to check if the TLB we're putting it in > actually supports the given size. According to the 2.06 PowerPC ISA, a > value that's out of range results in the minimum page size for the TLB > to be used. > > Signed-off-by

Re: [Qemu-devel] [PATCH v4 08/15] qmp: add block_job_cancel command

2012-01-20 Thread Kevin Wolf
Am 20.01.2012 01:02, schrieb Eric Blake: > On 01/06/2012 07:01 AM, Stefan Hajnoczi wrote: >> Add block_job_cancel, which stops an active block streaming operation. >> When the operation has been cancelled the new BLOCK_JOB_CANCELLED event >> is emitted. >> >> Signed-off-by: Stefan Hajnoczi > >> +

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Peter Maydell
On 19 January 2012 23:17, Rob Herring wrote: > On 01/19/2012 03:44 PM, Peter Maydell wrote: >> On 19 January 2012 21:31, Mark Langsdorf wrote: >>> +    highbank_binfo.board_id = 0xEC10100f; /* provided by deviceTree */ >> >> Where does this number come from? It's not in >> http://www.arm.linux.or

Re: [Qemu-devel] Get only TCG code without execution

2012-01-20 Thread Peter Maydell
On 20 January 2012 06:12, 陳韋任 wrote: >  Out of curiosity. What's ARM memory model? From the Wikipedia [1], it seems > ARMv7 has the same memory model as IA64. The ARM memory model is the set of semantics for memory accesses as defined in the ARM Architecture Reference Manual (covering not just re

Re: [Qemu-devel] bad USB tablet update rate on qemu-1.0

2012-01-20 Thread Andreas Färber
Hi Erik, Am 19.01.2012 20:15, schrieb Erik Rull: > Andreas Färber wrote: >> Am 19.01.2012 17:40, schrieb Erik Rull: >>> [...] there seems to be a >>> difference between the captured cursor for the native X-Windows window >>> and the VNC window that occured somewhere between 0.14 and 1.0. >> >> The

[Qemu-devel] [PATCH 2/3] vnc: fix ctrl key in vnc terminal emulation

2012-01-20 Thread Gerd Hoffmann
Make the control keys for terminals on the vnc display (i.e. qemu -vnc :0 -serial vc) work. Makes the terminals alot more usable as typing Ctrl-C in your serial console actually has the desired effect ;) Signed-off-by: Gerd Hoffmann --- ui/vnc.c | 10 -- 1 files changed, 8 insertions(

[Qemu-devel] [PATCH 3/3] vnc: implement shared flag handling.

2012-01-20 Thread Gerd Hoffmann
VNC clients send a shared flag in the client init message. Up to now qemu completely ignores this. This patch implements shared flag handling. It comes with three policies: By default qemu behaves as one would expect: Asking for a exclusive access grants exclusive access to the client connecti

[Qemu-devel] [PATCH 1/3] Fix vnc memory corruption with width = 1400

2012-01-20 Thread Gerd Hoffmann
vnc assumes that the screen width is a multiple of 16 in several places. If this is not the case vnc will overrun buffers, corrupt memory, make qemu crash. This is the minimum fix for this bug. It makes sure we don't overrun the scanline, thereby fixing the segfault. The rendering is *not* correc

[Qemu-devel] [PATCH 0/3] vnc patch collection

2012-01-20 Thread Gerd Hoffmann
Hi, All of these patches have been on the list before, this is just a re-post after rebasing them. This time with a git repo to pull from for your convinience. Check the individual patch descriptions for details. cheers, Gerd The following changes since commit 515689235c4c3d9c3f0406ddcdd21

Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI

2012-01-20 Thread Kevin Wolf
Am 20.01.2012 09:58, schrieb ronnie sahlberg: > On Thu, Jan 19, 2012 at 11:17 PM, Kevin Wolf wrote: >> Am 18.12.2011 05:48, schrieb Ronnie Sahlberg: >>> This patch adds configuration variables for iSCSI to set >>> initiator-name to use when logging in to the target, >>> which type of header-digest

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Marcelo Tosatti
On Thu, Jan 19, 2012 at 07:01:44PM +0100, Jan Kiszka wrote: > On 2012-01-19 18:53, Marcelo Tosatti wrote: > >> What problems does it cause, and in which scenarios? Can't they be > >> fixed? > > > > If the guest compensates for lost ticks, and KVM reinjects them, guest > > time advances faster then

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Jan Kiszka
On 2012-01-20 11:14, Marcelo Tosatti wrote: > On Thu, Jan 19, 2012 at 07:01:44PM +0100, Jan Kiszka wrote: >> On 2012-01-19 18:53, Marcelo Tosatti wrote: What problems does it cause, and in which scenarios? Can't they be fixed? >>> >>> If the guest compensates for lost ticks, and KVM reinj

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Daniel P. Berrange
On Fri, Jan 20, 2012 at 11:22:27AM +0100, Jan Kiszka wrote: > On 2012-01-20 11:14, Marcelo Tosatti wrote: > > On Thu, Jan 19, 2012 at 07:01:44PM +0100, Jan Kiszka wrote: > >> On 2012-01-19 18:53, Marcelo Tosatti wrote: > What problems does it cause, and in which scenarios? Can't they be >

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Jamie Lokier
Jan Kiszka wrote: > Usability. Users should not have to care about individual tick-based > clocks. They care about "my OS requires lost ticks compensation, yes or no". Conceivably an OS may require lost ticks compensation depending on boot options given to the OS telling it which clock sources to

Re: [Qemu-devel] Get only TCG code without execution

2012-01-20 Thread Peter Maydell
On 20 January 2012 09:44, 陳韋任 wrote: > On Fri, Jan 20, 2012 at 09:09:46AM +, Peter Maydell wrote: >  AFAIK, LLVM defines it's own memory model [1] which is inspired by the C++11 > memory model. That's why I think instead of implementing architecture-specific > memory model, QEMU should define

[Qemu-devel] [PATCH v9 8/9] hw/exynos4210.c: Add LAN support for SMDKC210.

2012-01-20 Thread Evgeny Voevodin
SMDKC210 uses lan9215 chip, but lan9118 in 16-bit mode seems to be enough. Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell --- hw/exynos4_boards.c | 27 +-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/hw/exynos4_boards.c b/hw/exynos4_board

[Qemu-devel] [PATCH v9 6/9] ARM: exynos4210: MCT support.

2012-01-20 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell --- Makefile.target |2 +- hw/exynos4210.c | 19 + hw/exynos4210_mct.c | 1479 +++ 3 files changed, 1499 insertions(+), 1 deletions(-) create mode 100644 hw/exynos4210_mct.c

[Qemu-devel] [PATCH] rename get_clock_realtime

2012-01-20 Thread Paolo Bonzini
get_clock_realtime accesses the host_clock, not the rt_clock. Signed-off-by: Paolo Bonzini --- qemu-timer.c |2 +- qemu-timer.h |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index cd026c6..4a14a6d 100644 --- a/qemu-timer.c +++ b/qemu-

[Qemu-devel] [PATCH] remove #if 0 code for timers

2012-01-20 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-timer.c | 29 - 1 files changed, 0 insertions(+), 29 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index 4a14a6d..8dc0d8a 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -494,35 +494,6 @@ static void host_alarm_handler(i

[Qemu-devel] [PATCH] nseries: attach monitor powerdown request to menelaus

2012-01-20 Thread Paolo Bonzini
I noticed some unused code in the twl92230, probably from before qdev-ification. This patch makes the machine use the chip's pwrbtn signal. Signed-off-by: Paolo Bonzini --- hw/nseries.c |2 ++ hw/twl92230.c | 21 + 2 files changed, 11 insertions(+), 12 deletions(-) d

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Jan Kiszka
On 2012-01-20 11:39, Jamie Lokier wrote: > Jan Kiszka wrote: >> Usability. Users should not have to care about individual tick-based >> clocks. They care about "my OS requires lost ticks compensation, yes or no". > > Conceivably an OS may require lost ticks compensation depending on > boot options

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Jan Kiszka
On 2012-01-20 11:25, Daniel P. Berrange wrote: > On Fri, Jan 20, 2012 at 11:22:27AM +0100, Jan Kiszka wrote: >> On 2012-01-20 11:14, Marcelo Tosatti wrote: >>> On Thu, Jan 19, 2012 at 07:01:44PM +0100, Jan Kiszka wrote: On 2012-01-19 18:53, Marcelo Tosatti wrote: >> What problems does it c

Re: [Qemu-devel] [PATCH] rename get_clock_realtime

2012-01-20 Thread Jan Kiszka
On 2012-01-20 12:05, Paolo Bonzini wrote: > get_clock_realtime accesses the host_clock, not the rt_clock. > > Signed-off-by: Paolo Bonzini > --- > qemu-timer.c |2 +- > qemu-timer.h |4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/qemu-timer.c b/qemu-timer.c

[Qemu-devel] [PATCH v9 0/9] ARM: Samsung Exynos4210-based boards support.

2012-01-20 Thread Evgeny Voevodin
This set of patches adds support for Samsung S5PC210-based boards NURI and SMDKC210. Tested on Linux kernel v3.x series. Usage: "-smp 2" option is obligatory for now. To test emulation models user can launch Linux kernel v3.x configured with exynos4_defconfig configuration. This will allow to bo

[Qemu-devel] [PATCH v9 2/9] ARM: Samsung exynos4210-based boards emulation

2012-01-20 Thread Evgeny Voevodin
Add initial support of NURI and SMDKC210 boards Signed-off-by: Evgeny Voevodin --- Makefile.target |3 +- hw/exynos4210.c | 193 +++ hw/exynos4210.h | 40 +++ hw/exynos4_boards.c | 143 +++

[Qemu-devel] [PATCH v9 5/9] ARM: exynos4210: Added PMU register model.

2012-01-20 Thread Evgeny Voevodin
From: Maksim Kozlov This model just implements PMU registers as a bulk of memory. The only reason of existence in such form is that secondary CPU boot loader uses PMU INFORM5 register as a holding pen. Signed-off-by: Evgeny Voevodin --- Makefile.target |1 + hw/exynos4210.c |9

[Qemu-devel] [PATCH v9 7/9] hw/lan9118: Add basic 16-bit mode support.

2012-01-20 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- hw/lan9118.c | 122 +++-- 1 files changed, 117 insertions(+), 5 deletions(-) diff --git a/hw/lan9118.c b/hw/lan9118.c index 9b199d0..d5e1551 100644 --- a/hw/lan9118.c +++ b/hw/lan9118.c @@ -235,6 +235,16 @@

Re: [Qemu-devel] [PATCH] rename get_clock_realtime

2012-01-20 Thread Paolo Bonzini
On 01/20/2012 12:17 PM, Jan Kiszka wrote: On 2012-01-20 12:05, Paolo Bonzini wrote: get_clock_realtime accesses the host_clock, not the rt_clock. Signed-off-by: Paolo Bonzini --- qemu-timer.c |2 +- qemu-timer.h |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a

Re: [Qemu-devel] [PATCH] hw/9pfs: Update MAINTAINERS file

2012-01-20 Thread Aneesh Kumar K.V
On Thu, 19 Jan 2012 23:40:25 +0100, Andreas Färber wrote: > Am 19.01.2012 18:27, schrieb Aneesh Kumar K.V: > > From: "Aneesh Kumar K.V" > > > > Signed-off-by: Aneesh Kumar K.V > > --- > > MAINTAINERS |6 -- > > 1 files changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/MAIN

[Qemu-devel] [PATCH v2] rename get_clock_realtime

2012-01-20 Thread Paolo Bonzini
get_clock_realtime accesses the host_clock, not the rt_clock. Signed-off-by: Paolo Bonzini --- v1->v2: remove incorrect comment qemu-timer.c |2 +- qemu-timer.h |5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index cd026c6..4a

[Qemu-devel] [PATCH v9 1/9] ARM: exynos4210: IRQ subsystem support.

2012-01-20 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |1 + hw/exynos4210.h | 82 hw/exynos4210_combiner.c | 472 ++ hw/exynos4210_gic.c | 436 ++ 4 files changed, 991 inserti

Re: [Qemu-devel] [PATCH] rename get_clock_realtime

2012-01-20 Thread Jan Kiszka
On 2012-01-20 12:26, Paolo Bonzini wrote: > On 01/20/2012 12:17 PM, Jan Kiszka wrote: >> On 2012-01-20 12:05, Paolo Bonzini wrote: >>> get_clock_realtime accesses the host_clock, not the rt_clock. >>> >>> Signed-off-by: Paolo Bonzini >>> --- >>> qemu-timer.c |2 +- >>> qemu-timer.h |4 ++

Re: [Qemu-devel] [PATCH] rename get_clock_realtime

2012-01-20 Thread Paolo Bonzini
On 01/20/2012 12:29 PM, Jan Kiszka wrote: > Yeah, however, realtime is quite confusing because CLOCK_MONOTONIC is > part of the "real-time clock API". The code is much clearer than the > comment, I'll remove it completely. v2 on the way. There is CLOCK_MONOTONIC and CLOCK_REALTIME, and this

[Qemu-devel] [PATCH v9 3/9] ARM: exynos4210: UART support

2012-01-20 Thread Evgeny Voevodin
From: Maksim Kozlov Add basic support of exynos4210 UART Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c | 29 +++ hw/exynos4210.h |9 + hw/exynos4210_uart.c | 661 ++ 4 files changed, 700 inser

[Qemu-devel] [PATCH v9 4/9] ARM: exynos4210: PWM support.

2012-01-20 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell --- Makefile.target |2 +- hw/exynos4210.c | 12 ++ hw/exynos4210_pwm.c | 413 +++ 3 files changed, 426 insertions(+), 1 deletions(-) create mode 100644 hw/exynos4210_pwm.c

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Daniel P. Berrange
On Fri, Jan 20, 2012 at 12:13:48PM +0100, Jan Kiszka wrote: > On 2012-01-20 11:25, Daniel P. Berrange wrote: > > On Fri, Jan 20, 2012 at 11:22:27AM +0100, Jan Kiszka wrote: > >> On 2012-01-20 11:14, Marcelo Tosatti wrote: > >>> On Thu, Jan 19, 2012 at 07:01:44PM +0100, Jan Kiszka wrote: > On 2

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Jan Kiszka
On 2012-01-20 12:45, Daniel P. Berrange wrote: > On Fri, Jan 20, 2012 at 12:13:48PM +0100, Jan Kiszka wrote: >> On 2012-01-20 11:25, Daniel P. Berrange wrote: >>> On Fri, Jan 20, 2012 at 11:22:27AM +0100, Jan Kiszka wrote: On 2012-01-20 11:14, Marcelo Tosatti wrote: > On Thu, Jan 19, 2012

Re: [Qemu-devel] [RFC 0/5]: QMP: add balloon-get-memory-stats command

2012-01-20 Thread Luiz Capitulino
On Thu, 19 Jan 2012 10:15:55 -0700 Eric Blake wrote: > On 01/19/2012 08:56 AM, Luiz Capitulino wrote: > > Long ago, commit 625a5be added the guest provided memory statistics to > > the query-balloon command. Unfortunately, it also introduced a severe > > bug: query-balloon would hang if the guest

[Qemu-devel] [PATCH] m48t59: use rtc_clock for alarm timer

2012-01-20 Thread Paolo Bonzini
This lets the RTC get adjustments from the host NTP client. The watchdog still uses the vm_clock. The previous behavior is available with "-rtc clock=vm". Cc: Andreas Färber Signed-off-by: Paolo Bonzini --- hw/m48t59.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a

Re: [Qemu-devel] [RFC 0/5]: QMP: add balloon-get-memory-stats command

2012-01-20 Thread Luiz Capitulino
On Thu, 19 Jan 2012 15:50:06 -0600 Adam Litke wrote: > On Thu, Jan 19, 2012 at 01:56:26PM -0200, Luiz Capitulino wrote: > > Long ago, commit 625a5be added the guest provided memory statistics to > > the query-balloon command. Unfortunately, it also introduced a severe > > bug: query-balloon would

[Qemu-devel] [PATCH 0/4] Use rtc_clock uniformly for ARM

2012-01-20 Thread Paolo Bonzini
This series uses rtc_clock uniformly in device models that provide RTC functionality. This will let users choose the desired semantics for the clock. This is most important with qtest, where "-rtc clock=vm" will provide determinism and let you run tests that fake execution for large time periods.

[Qemu-devel] [PATCH 1/4] rtc: add -rtc clock=rt

2012-01-20 Thread Paolo Bonzini
This will let people use backwards-compatible semantics for devices that will be affected by the following patch. Signed-off-by: Paolo Bonzini --- qemu-options.hx |7 --- vl.c|2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/qemu-options.hx b/qemu-opti

[Qemu-devel] [PATCH 2/4] arm: switch real-time clocks to rtc_clock

2012-01-20 Thread Paolo Bonzini
This lets the user specify the desired semantics. By default, the RTC will follow adjustments from the host's NTP client. "-rtc clock=vm" will improve determinism with both icount and qtest. Finally, the previous behavior is available with "-rtc clock=rt". Signed-off-by: Paolo Bonzini --- hw/

[Qemu-devel] [PATCH 4/4] pl031: switch clock base to rtc_clock

2012-01-20 Thread Paolo Bonzini
This lets the user specify the desired semantics. By default, the RTC will follow adjustments from the host's NTP client, and will remain in sync when the virtual machine is stopped. The previous behavior, which provides determinism with both icount and qtest, remains available with "-rtc clock=v

[Qemu-devel] [PATCH 3/4] pl031: rearm alarm timer upon load

2012-01-20 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/pl031.c | 40 +--- 1 files changed, 25 insertions(+), 15 deletions(-) diff --git a/hw/pl031.c b/hw/pl031.c index 2fb0c8e..1ca4c23 100644 --- a/hw/pl031.c +++ b/hw/pl031.c @@ -47,21 +47,6 @@ typedef struct { uint32_t i

Re: [Qemu-devel] [PATCH v4 08/15] qmp: add block_job_cancel command

2012-01-20 Thread Luiz Capitulino
On Fri, 20 Jan 2012 09:30:45 +0100 Kevin Wolf wrote: > Am 20.01.2012 01:02, schrieb Eric Blake: > > On 01/06/2012 07:01 AM, Stefan Hajnoczi wrote: > >> Add block_job_cancel, which stops an active block streaming operation. > >> When the operation has been cancelled the new BLOCK_JOB_CANCELLED eve

Re: [Qemu-devel] [SeaBIOS] Error booting from USB Storage Device in QEMU-KVM GIT MASTER

2012-01-20 Thread Dyweni - Qemu-Devel
Hi All, I have good and bad news... I tested QEMU-KVM using branches 'master' (9501d0f1b6efc83f69d06b27a625bad71d30d58b) and 'uq/master' (6a48ffaaa732b2142c1b5030178f2d4a0fa499fe). Seabios used was the version included in those branches (no -L switch). Both branches failed to detect the USB Fl

Re: [Qemu-devel] bad USB tablet update rate on qemu-1.0

2012-01-20 Thread Erik Rull
Hi Andreas, Andreas Färber wrote: Hi Erik, Am 19.01.2012 20:15, schrieb Erik Rull: Andreas Färber wrote: Am 19.01.2012 17:40, schrieb Erik Rull: [...] there seems to be a difference between the captured cursor for the native X-Windows window and the VNC window that occured somewhere between

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Daniel P. Berrange
On Fri, Jan 20, 2012 at 01:00:06PM +0100, Jan Kiszka wrote: > On 2012-01-20 12:45, Daniel P. Berrange wrote: > > On Fri, Jan 20, 2012 at 12:13:48PM +0100, Jan Kiszka wrote: > >> On 2012-01-20 11:25, Daniel P. Berrange wrote: > >>> On Fri, Jan 20, 2012 at 11:22:27AM +0100, Jan Kiszka wrote: > O

Re: [Qemu-devel] [PATCH] m48t59: use rtc_clock for alarm timer

2012-01-20 Thread Andreas Färber
Am 20.01.2012 13:05, schrieb Paolo Bonzini: > This lets the RTC get adjustments from the host NTP client. > The watchdog still uses the vm_clock. The previous behavior is > available with "-rtc clock=vm". > > Signed-off-by: Paolo Bonzini Reviewed-by: Andreas Färber Cc: Blue Andreas > --- >

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-20 Thread Vadim Rozenfeld
This code is slightly buggy. Please try Yan's repository at github (https://github.com/YanVugenfirer/). I believe that the most critical changes have been merged already by Yan into this public repository. I will ask to update binaries and sources at fedoraproject site as well. Best regards, Vadim

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Jan Kiszka
On 2012-01-20 13:42, Daniel P. Berrange wrote: > On Fri, Jan 20, 2012 at 01:00:06PM +0100, Jan Kiszka wrote: >> On 2012-01-20 12:45, Daniel P. Berrange wrote: >>> On Fri, Jan 20, 2012 at 12:13:48PM +0100, Jan Kiszka wrote: On 2012-01-20 11:25, Daniel P. Berrange wrote: > On Fri, Jan 20, 20

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Daniel P. Berrange
On Fri, Jan 20, 2012 at 01:51:20PM +0100, Jan Kiszka wrote: > On 2012-01-20 13:42, Daniel P. Berrange wrote: > > On Fri, Jan 20, 2012 at 01:00:06PM +0100, Jan Kiszka wrote: > >> On 2012-01-20 12:45, Daniel P. Berrange wrote: > >>> On Fri, Jan 20, 2012 at 12:13:48PM +0100, Jan Kiszka wrote: > O

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Jan Kiszka
On 2012-01-20 13:54, Daniel P. Berrange wrote: > On Fri, Jan 20, 2012 at 01:51:20PM +0100, Jan Kiszka wrote: >> On 2012-01-20 13:42, Daniel P. Berrange wrote: >>> On Fri, Jan 20, 2012 at 01:00:06PM +0100, Jan Kiszka wrote: On 2012-01-20 12:45, Daniel P. Berrange wrote: > On Fri, Jan 20, 20

Re: [Qemu-devel] [PATCH 00/14] softfloat: Use POSIX integer types - benchmarked

2012-01-20 Thread Peter Maydell
On 16 January 2012 00:46, Andreas Färber wrote: > For a loop count of 100,000 and 5 runs I got the following results: > >  current:        138.9-204.1 Whetstone-MIPS >  [u]int*_t:      185.2-188.7 Whetstone-MIPS >  [u]int_fast*_t: 285.7-294.1 Whetstone-MIPS > >  Toshiba AC100:  833.3-909.1 Whetsto

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Daniel P. Berrange
On Fri, Jan 20, 2012 at 02:02:03PM +0100, Jan Kiszka wrote: > On 2012-01-20 13:54, Daniel P. Berrange wrote: > > On Fri, Jan 20, 2012 at 01:51:20PM +0100, Jan Kiszka wrote: > >> On 2012-01-20 13:42, Daniel P. Berrange wrote: > >>> On Fri, Jan 20, 2012 at 01:00:06PM +0100, Jan Kiszka wrote: > O

[Qemu-devel] Unsubscription Confirmation

2012-01-20 Thread RealEstateMalaysian.com
Thank you for subscribing. You have now unsubscribed and no more messages will be sent.

[Qemu-devel] [PATCH] PPC: booke206: Check for min/max TLB entry size

2012-01-20 Thread Alexander Graf
When setting a TLB entry, we need to check if the TLB we're putting it in actually supports the given size. According to the 2.06 PowerPC ISA, a value that's out of range results in the minimum page size for the TLB to be used. Signed-off-by: Alexander Graf --- v1 -> v2: - fix min/max check

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Rob Herring
On 01/20/2012 02:47 AM, Peter Maydell wrote: > On 19 January 2012 23:17, Rob Herring wrote: >> On 01/19/2012 03:44 PM, Peter Maydell wrote: >>> On 19 January 2012 21:31, Mark Langsdorf wrote: +highbank_binfo.board_id = 0xEC10100f; /* provided by deviceTree */ >>> >>> Where does this numb

[Qemu-devel] [PATCH 1/2] KVM: Update headers (except HIOR mess)

2012-01-20 Thread Alexander Graf
This patch is basically what ./scripts/update-linux-headers.sh against upstream KVM's next branch outputs except that all the HIOR bits are removed. These we have to update with the code that uses them. Signed-off-by: Alexander Graf --- linux-headers/asm-powerpc/kvm.h |9 ++- linux-

[Qemu-devel] [PATCH 2/2] PPC: KVM: Update HIOR code to new interface

2012-01-20 Thread Alexander Graf
Unfortunately the HIOR setting code slipped into upstream QEMU before it was pulled into upstream KVM. And since Murphy is always right, comments on the patches only emerged on the pull request leading to changes in the interface. So here's an update to the HIOR setting. While at it, I also relaxe

Re: [Qemu-devel] virtual pc hash table vs physical pc hash table

2012-01-20 Thread Xin Tong
maybe one of the reasons of having the virtual pc hash table is that the pc does not need to be tranlated to a physical pc which is used in the physical pc hash table. Xin On Fri, Jan 20, 2012 at 1:24 AM, 陳韋任 wrote: > On Mon, Jan 02, 2012 at 07:11:41AM -0500, Xin Tong wrote: >> In qemu, there

Re: [Qemu-devel] nested page table translation for non-x86 operating system

2012-01-20 Thread Xin Tong
On Fri, Jan 20, 2012 at 3:23 AM, 陳韋任 wrote: >> 1. The control of gCR3 and hCR3 needs kernel access. While they can >> be set with a device module as what is done in kvm. Trapping into the >> kernel every time gCR3 is reseted might be too expensive. > > Why the control of gCR3 needs kernel access

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Peter Maydell
On 20 January 2012 13:48, Rob Herring wrote: > Kernel DT co-maintainer is not authoritative enough for you? Only if I recognise their name :-) [ie, sorry.] > The documentation needs some clarification. > >> But this is an ABI between boot loaders and the kernel so I don't >> want to just have so

[Qemu-devel] macvtap performance: good when writing from guest, abysmal when reading on guest (~ 700kB/s)

2012-01-20 Thread Lutz Vieweg
Hi, I've been using qemu-kvm along with ordinary tap-devices and software bridges for quite some time. When I recently noticed that a certain TCP connection between a guest and a remote physical host was limited to ~ 80MB/s, I thought it would be a good idea to check whether by using "macvtap",

Re: [Qemu-devel] [PATCH 2/4] Add cleanup function

2012-01-20 Thread Ryan Harper
* Eric Blake [2012-01-17 16:03]: > On 01/16/2012 10:16 AM, Ryan Harper wrote: > >>> if test -z "$1" -o -z "$2"; then > >>> echo "Usage: $0 QEMU TEST1 [TEST2 ...]" > >>> +cleanup > >>> exit 1 > >> > >> Is it worth using 'trap cleanup 0' to install the cleanup handler up > >> front, i

[Qemu-devel] [Bug 919242] [NEW] qemu-img convert to VDI corrupts image

2012-01-20 Thread jbthiel
Public bug reported: Hello, thanks to all for the great work on qemu, an excellent technology. There appears to be a serious bug in qemu-img 1.0, yielding silent corruption when converting an image to VDI format. After conversion to VDI, an image with WinNT4sp6 (NTFS) yields a boot failure (det

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Mark Langsdorf
On 01/20/2012 07:48 AM, Rob Herring wrote: > On 01/20/2012 02:47 AM, Peter Maydell wrote: >> On 19 January 2012 23:17, Rob Herring wrote: >>> On 01/19/2012 03:44 PM, Peter Maydell wrote: On 19 January 2012 21:31, Mark Langsdorf wrote: > +highbank_binfo.board_id = 0xEC10100f; /*

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Peter Maydell
On 20 January 2012 16:25, Mark Langsdorf wrote: > On 01/20/2012 07:48 AM, Rob Herring wrote: >> On 01/20/2012 02:47 AM, Peter Maydell wrote: >>> On 19 January 2012 23:17, Rob Herring wrote: On 01/19/2012 03:44 PM, Peter Maydell wrote: > On 19 January 2012 21:31, Mark Langsdorf > wr

[Qemu-devel] [Bug 919242] Re: qemu-img convert to VDI corrupts image

2012-01-20 Thread Stefan Weil
** Changed in: qemu Assignee: (unassigned) => Stefan Weil (ubuntu-weilnetz) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/919242 Title: qemu-img convert to VDI corrupts image Status in QEMU:

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Mark Langsdorf
On 01/20/2012 10:27 AM, Peter Maydell wrote: > On 20 January 2012 16:25, Mark Langsdorf wrote: >> On 01/20/2012 07:48 AM, Rob Herring wrote: >>> On 01/20/2012 02:47 AM, Peter Maydell wrote: On 19 January 2012 23:17, Rob Herring wrote: > On 01/19/2012 03:44 PM, Peter Maydell wrote: >>

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Peter Maydell
On 20 January 2012 16:57, Mark Langsdorf wrote: > On 01/20/2012 10:27 AM, Peter Maydell wrote: >> It's still not clear to me from this conversation if the right >> answer is "0", "-1" or "anything that's not a valid board ID >> and not -1 either"... > > Quoting Rob from upthread: > "0 or -1 is the

[Qemu-devel] [PATCH] arm_boot: support board IDs more than 16 bits wide

2012-01-20 Thread Peter Maydell
Support passing a board ID value to the kernel in r1 that is more than 16 bits wide. This is needed to pass the '-1 == invalid' value for boards which only support device tree booting. Signed-off-by: Peter Maydell --- This applies after the Calxeda patchset. Mark, I suggest you put it in your pat

[Qemu-devel] [PATCH v4 0/6] save/restore on Xen

2012-01-20 Thread Stefano Stabellini
Hi all, this is the fourth version of the Xen save/restore patch series. We have been discussing this issue for quite a while on #qemu and qemu-devel: http://marc.info/?l=qemu-devel&m=132346828427314&w=2 http://marc.info/?l=qemu-devel&m=132377734605464&w=2 A few different approaches were propos

[Qemu-devel] [PATCH v4 2/6] xen mapcache: check if memory region has moved.

2012-01-20 Thread Stefano Stabellini
From: Anthony PERARD This patch changes the xen_map_cache behavior. Before trying to map a guest addr, mapcache will look into the list of range of address that have been moved (physmap/set_memory). There is currently one memory space like this, the vram, "moved" from were it's allocated to were

[Qemu-devel] [PATCH v4 1/6] vl.c: do not save the RAM state when Xen is enabled

2012-01-20 Thread Stefano Stabellini
From: Anthony PERARD In the Xen case, the guest RAM is not handle by QEMU, and it is saved by Xen tools. So, we just avoid to register the RAM save state handler. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- vl.c |6 -- 1 files changed, 4 insertions(+), 2 deleti

[Qemu-devel] [PATCH v4 5/6] xen: record physmap changes to xenstore

2012-01-20 Thread Stefano Stabellini
Write to xenstore any physmap changes so that the hypervisor can be aware of them. Read physmap changes from xenstore on boot. Signed-off-by: Stefano Stabellini --- xen-all.c | 78 - 1 files changed, 77 insertions(+), 1 deletions(-)

[Qemu-devel] [PATCH 18/20] kvm: x86: Add user space part for in-kernel i8259

2012-01-20 Thread Marcelo Tosatti
From: Jan Kiszka Introduce the alternative 'kvm-i8259' device model that exploits KVM in-kernel acceleration. The PIIX3 initialization code is furthermore extended by KVM specific IRQ route setup. GSI injection differs in KVM mode from the user space model. As we can dispatch ISA-range IRQs to b

[Qemu-devel] [PATCH 08/20] apic: Factor out base class for KVM reuse

2012-01-20 Thread Marcelo Tosatti
From: Jan Kiszka The KVM in-kernel APIC model will reuse parts of the user space model while providing the same frontend view to guest and most management interfaces. Factor out an APIC base class to encapsulate those parts that will be shared by user space and KVM model. This class offers callb

[Qemu-devel] [PATCH 19/20] kvm: x86: Add user space part for in-kernel IOAPIC

2012-01-20 Thread Marcelo Tosatti
From: Jan Kiszka This introduces the KVM-accelerated IOAPIC model 'kvm-ioapic' and extends the IRQ routing setup by the 0->2 redirection when needed. The kvm-ioapic model has a property that allows to define its GSI base for injecting interrupts into the kernel model. This will allow to disentan

[Qemu-devel] [PATCH 12/20] ioapic: Drop post-load irr initialization

2012-01-20 Thread Marcelo Tosatti
From: Jan Kiszka As all devices undergo a reset prior to vmloa, and the reset value of irr is 0, we do not need to do this clearing for older vmstates explicitly. Dropping this redundant code will also make KVM integration a bit simpler. Signed-off-by: Jan Kiszka --- hw/ioapic.c | 12 ---

Re: [Qemu-devel] Get only TCG code without execution

2012-01-20 Thread 陳韋任
> I was not talking about semantics of individual instructions but semantics > of the whole multi-threaded program. Multi-threaded programs can lead to > several different (most of which are unintended) states of the CPU. What > states are possible is described in a mathematically rigorous definiti

Re: [Qemu-devel] nested page table translation for non-x86 operating system

2012-01-20 Thread 陳韋任
> 1. The control of gCR3 and hCR3 needs kernel access. While they can > be set with a device module as what is done in kvm. Trapping into the > kernel every time gCR3 is reseted might be too expensive. Why the control of gCR3 needs kernel access? Isn't gCR3 just a field of the CPUX86State? QEMU

Re: [Qemu-devel] Get only TCG code without execution

2012-01-20 Thread 陳韋任
> > I was not talking about semantics of individual instructions but semantics > > of the whole multi-threaded program. Multi-threaded programs can lead to > > several different (most of which are unintended) states of the CPU. What > > states are possible is described in a mathematically rigorous

Re: [Qemu-devel] Question about do_interrupt (target-i386/op_helper.c)

2012-01-20 Thread 陳韋任
> In cpu_exec() env is a local variable. In do_interrupt() it is the global > variable (held in a specific register via "asm(AREG0)"). The two aren't > necessarily the same value, hence the fiddling about. Do you mean we sync env with envl at this point? Regards, chenwj -- Wei-Ren Chen (陳韋任)

Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI

2012-01-20 Thread ronnie sahlberg
On Thu, Jan 19, 2012 at 11:17 PM, Kevin Wolf wrote: > Am 18.12.2011 05:48, schrieb Ronnie Sahlberg: >> This patch adds configuration variables for iSCSI to set >> initiator-name to use when logging in to the target, >> which type of header-digest to negotiate with the target >> and username and pa

Re: [Qemu-devel] Removing indeterminism in qemu execution

2012-01-20 Thread batuzovk
> Hi developers, > > I'm debugging an operating system with QEMU and I have a race condition in > the OS. The problem is that each time I run QEMU I get this error in a > different place, so it makes impossible for gdb to debug it. My plan is to > remove this indeterminism and be able to reproduce

[Qemu-devel] [PATCH 20/20] kvm: Activate in-kernel irqchip support

2012-01-20 Thread Marcelo Tosatti
From: Jan Kiszka Make the basic in-kernel irqchip support selectable via -machine ...,kernel_irqchip=on. Leave it off by default until it can fully replace user space models. Signed-off-by: Jan Kiszka --- qemu-config.c |4 qemu-options.hx |5 - 2 files changed, 8 insertions(

[Qemu-devel] [PATCH 02/20] hyper-v: initialize Hyper-V CPUID leaves.

2012-01-20 Thread Marcelo Tosatti
From: Vadim Rozenfeld Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c | 65 +++- 1 files changed, 63 insertions(+), 2 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 04e65c5..1f56492 100644 --- a/target-i386/kvm.c +++

[Qemu-devel] [PATCH 00/20] [PULL] qemu-kvm.git uq/master queue

2012-01-20 Thread Marcelo Tosatti
The following changes since commit 8c4ec5c0269bda18bb777a64b2008088d1c632dc: pxa2xx_keypad: fix unbalanced parenthesis. (2012-01-17 02:14:42 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Jan Kiszka (18): msi: Generalize msix

[Qemu-devel] [PATCH 07/20] apic: Introduce apic_report_irq_delivered

2012-01-20 Thread Marcelo Tosatti
From: Jan Kiszka The in-kernel i8259 and IOAPIC backends for KVM will need this, so encapsulate the shared bits. Signed-off-by: Jan Kiszka --- hw/apic.c| 11 --- hw/apic.h|1 + trace-events |2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/hw/apic

Re: [Qemu-devel] [PATCH v4 0/6] save/restore on Xen

2012-01-20 Thread Jan Kiszka
On 2012-01-20 18:20, Stefano Stabellini wrote: > Hi all, > this is the fourth version of the Xen save/restore patch series. > We have been discussing this issue for quite a while on #qemu and > qemu-devel: > > > http://marc.info/?l=qemu-devel&m=132346828427314&w=2 > http://marc.info/?l=qemu-devel

[Qemu-devel] [PATCH 17/20] kvm: x86: Add user space part for in-kernel APIC

2012-01-20 Thread Marcelo Tosatti
From: Jan Kiszka This introduces the alternative APIC device which makes use of KVM's in-kernel device model. External NMI injection via LINT1 is emulated by checking the current state of the in-kernel APIC, only injecting a NMI into the VCPU if LINT1 is unmasked and configured to DM_NMI. MSI is

[Qemu-devel] [PATCH v4 4/6] cirrus_vga: do not reset videoram on resume

2012-01-20 Thread Stefano Stabellini
From: Anthony PERARD When resuming we shouldn't set the videoram to 0xff considering that we are about to read it from the savefile. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/cirrus_vga.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --g

[Qemu-devel] [PATCH 03/20] msi: Generalize msix_supported to msi_supported

2012-01-20 Thread Marcelo Tosatti
From: Jan Kiszka Rename msix_supported to msi_supported and control MSI and MSI-X activation this way. That was likely to original intention for this flag, but MSI support came after MSI-X. Signed-off-by: Jan Kiszka --- hw/msi.c |8 hw/msi.h |2 ++ hw/msix.c |9 -

[Qemu-devel] [PATCH 16/20] kvm: x86: Establish IRQ0 override control

2012-01-20 Thread Marcelo Tosatti
From: Jan Kiszka KVM is forced to disable the IRQ0 override when we run with in-kernel irqchip but without IRQ routing support of the kernel. Set the fwcfg value correspondingly. This aligns us with qemu-kvm. Signed-off-by: Jan Kiszka --- hw/pc.c|3 ++- kvm-all.c |5 + kvm-stu

[Qemu-devel] [PATCH 09/20] apic: Open-code timer save/restore

2012-01-20 Thread Marcelo Tosatti
From: Jan Kiszka To enable migration between accelerated and non-accelerated APIC models, we will need to handle the timer saving and restoring specially and can no longer rely on the automatics of VMSTATE_TIMER. Specifically, accelerated model will not start any QEMUTimer. This patch therefore

Re: [Qemu-devel] QEMU TB Unlinking due to interrupt.

2012-01-20 Thread 陳韋任
On Fri, Dec 09, 2011 at 07:08:43PM -0500, Xin Tong wrote: > can you forward me the patch please. Peter. Also, as far as I > understand, tb unlinking can only happen in 2 cases. > > 1. some other tbs being invalidated. > 2. interrrupt pending http://lists.gnu.org/archive/html/qemu-devel/2011-09/

[Qemu-devel] [PATCH v4 3/6] Set runstate to INMIGRATE earlier

2012-01-20 Thread Stefano Stabellini
Set runstate to RUN_STATE_INMIGRATE as soon as we can on resume. Signed-off-by: Stefano Stabellini --- vl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 6f0435b..bb0139f 100644 --- a/vl.c +++ b/vl.c @@ -2972,6 +2972,7 @@ int main(int argc, char **ar

  1   2   >