Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-11 Thread Gerd Hoffmann
On 12/12/12 04:18, Scott Wood wrote: > QEMU is sometimes used in embedded contexts, where graphical support > is unnecessary. The ability to turn off graphics support not only > saves some space, but it eliminates the dependency on pixman. We have tons of hand-crafted pixel shuffeling code all ov

Re: [Qemu-devel] [PATCH v7 00/10] i8254, i8259 and running Microport UNIX (ca 1987)

2012-12-11 Thread Matthew Ogilvie
On Tue, Dec 11, 2012 at 06:19:56PM +0200, Gleb Natapov wrote: > On Sun, Nov 25, 2012 at 02:51:36PM -0700, Matthew Ogilvie wrote: > > > > Still needed: > > > > * Corresponding KVM patches. The best approach may depend > > on what option is selected for qemu above. > > *

[Qemu-devel] buildbot failure in qemu on ppc-next_i386_debian_6_0

2012-12-11 Thread qemu
The Buildbot has detected a new failure on builder ppc-next_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/ppc-next_i386_debian_6_0/builds/551 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Bu

Re: [Qemu-devel] [PATCH v7 00/10] i8254, i8259 and running Microport UNIX (ca 1987)

2012-12-11 Thread Matthew Ogilvie
On Tue, Dec 11, 2012 at 11:20:05AM +, Jamie Lokier wrote: > Matthew Ogilvie wrote: > > 2. Just fix it immediately, and don't worry about migration. Squash > >the last few patches together. A single missed periodic > >timer tick that only happens when migrating > >between versions

[Qemu-devel] buildbot failure in qemu on ppc-next_x86_64_debian_6_0

2012-12-11 Thread qemu
The Buildbot has detected a new failure on builder ppc-next_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/ppc-next_x86_64_debian_6_0/builds/549 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuk

Re: [Qemu-devel] [PATCH V7 00/10] replace QEMUOptionParameter with QemuOpts parser

2012-12-11 Thread Dong Xu Wang
On Tue, Dec 11, 2012 at 11:57 PM, Kevin Wolf wrote: > Am 06.12.2012 07:47, schrieb Dong Xu Wang: >> Patch 1-3 are from Luiz, added Markus's comments, discussion could be found >> here: >> http://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg02716.html >> Patch 3 was changed according Paolo'

[Qemu-devel] [PATCH v12 1/8] save/load cpu runstate

2012-12-11 Thread Hu Tao
Signed-off-by: Hu Tao --- migration.c | 6 +- monitor.c | 5 ++--- savevm.c| 1 + sysemu.h| 2 ++ vl.c| 34 ++ 5 files changed, 40 insertions(+), 8 deletions(-) diff --git a/migration.c b/migration.c index 73ce170..31fa300 100644 --- a/mi

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-11 Thread Stefan Weil
Am 12.12.2012 04:18, schrieb Scott Wood: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman. Signed-off-by: Scott Wood --- There are undoubtedly some

[Qemu-devel] [PATCH v12 6/8] introduce a new qom device to deal with panicked event

2012-12-11 Thread Hu Tao
If the target is x86/x86_64, the guest's kernel will write 0x01 to the port KVM_PV_EVENT_PORT when it is panciked. This patch introduces a new qom device kvm_pv_ioport to listen this I/O port, and deal with panicked event according to panicked_action's value. The possible actions are: 1. emit QEVEN

Re: [Qemu-devel] [PATCH 2/3] Make-repl_ph-to-sign-extended-to-target_long

2012-12-11 Thread Dongxue Zhang
Thanks for your review, now I know this problem but don't have gcc can compile repl_ph instruction. I will build a gcc and resend this patch later. 2012/12/12 Andreas Färber > Am 11.12.2012 16:13, schrieb Markus Armbruster: > > Please-separate-words-with-spaces-in-your-subject-line-thank-you-:)

[Qemu-devel] [PATCH v12 3/8] update kernel headers

2012-12-11 Thread Hu Tao
update kernel headers to add pv event macros. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- linux-headers/asm-x86/kvm_para.h | 1 + linux-headers/linux/kvm_para.h | 6 ++ 2 files changed, 7 insertions(+) diff --git a/linux-headers/asm-x86/kvm_para.h b/linux-headers/asm-x86/kvm_pa

[Qemu-devel] [PATCH 1/2] omap_i2c: Clear SBD bit in STAT register on DATA read

2012-12-11 Thread Andreas Färber
After reading a single-byte I2C response such as the tmp105's response to 0x01 0x00, the SBD status bit would not get reset on next read, still indicating validity of only a single byte. Clear it on next word read. Signed-off-by: Andreas Färber --- hw/omap_i2c.c |1 + 1 Datei geändert, 1 Zei

[Qemu-devel] [PATCH 2/2] tests: Add tmp105 unit test

2012-12-11 Thread Andreas Färber
Exercise all four commands of the TMP105, testing for an issue in the I2C TX path. The test case is specific to the n800's OMAP I2C for now and is the first test case for arm. Signed-off-by: Andreas Färber --- tests/Makefile |2 + tests/tmp105-test.c | 205 +

[Qemu-devel] [PATCH 0/2] tmp105: qtest support

2012-12-11 Thread Andreas Färber
Hello, Last night I decided to learn about I2C and derived a qtest from the omap_i2c implementation used in the n800/n810. Since that is the first I2C device I got to know, this is not yet a full-blown generic I2C libqos framework, but it should be pretty easy to generalize it further as follow-up

[Qemu-devel] [PATCH v12 2/8] start vm after resetting it

2012-12-11 Thread Hu Tao
From: Wen Congyang The guest should run after resetting it, but it does not run if its old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. We don't set runstate to RUN_STATE_PAUSED when resetting the guest, so the runstate will be changed from RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED

[Qemu-devel] [PATCH] kvm: notify host when the guest is panicked

2012-12-11 Thread Hu Tao
We can know the guest is panicked when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this feature is: management app(for example: libvirt) can do auto dump when the guest is panicked. If management app does not do auto dump, the guest's user can do dump by hand

[Qemu-devel] [PATCH v12 4/8] add a new runstate: RUN_STATE_GUEST_PANICKED

2012-12-11 Thread Hu Tao
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- migration.c | 1 + qapi-schema.json | 6 +- qmp.c| 3 ++- vl.c | 11 ++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/migrati

[Qemu-devel] [PATCH v12 5/8] add a new qevent: QEVENT_GUEST_PANICKED

2012-12-11 Thread Hu Tao
This event will be emited when the guest is panicked. Signed-off-by: Wen Congyang --- monitor.c | 1 + monitor.h | 1 + 2 files changed, 2 insertions(+) diff --git a/monitor.c b/monitor.c index 1226501..231785b 100644 --- a/monitor.c +++ b/monitor.c @@ -458,6 +458,7 @@ static const char *monito

[Qemu-devel] [PATCH v12 8/8] pv event: add document to describe the usage

2012-12-11 Thread Hu Tao
Signed-off-by: Hu Tao --- docs/pv-event.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 docs/pv-event.txt diff --git a/docs/pv-event.txt b/docs/pv-event.txt new file mode 100644 index 000..ac9e7fa --- /dev/null +++ b/docs/pv-event.txt @@ -0,0 +1,17 @@ +KVM PV

[Qemu-devel] [PATCH v12 7/8] allower the user to disable pv event support

2012-12-11 Thread Hu Tao
Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- hw/pc_piix.c| 8 +++- qemu-config.c | 4 qemu-options.hx | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 8380702..bf31b96 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @

[Qemu-devel] [PATCH v12 0/8] pv event to notify host when the guest is panicked

2012-12-11 Thread Hu Tao
This series implements a new interface, kvm pv event, to notify host when some events happen in guest. Right now there is one supported event: guest panic. changes from v11: - add a new patch 'save/load cpu runstate' - fix a bug of null-dereference when no -machine option is supplied - rese

Re: [Qemu-devel] [PATCH 0/3] re-enable balloon stats

2012-12-11 Thread Dietmar Maurer
> And personally, I think just having a stale value for stats-last-update is > sufficient for error checking, but we can squirrel away an error in a > stats-last- > error field if we want something more descriptive for clients, and just wipe > it > out on the next successful update. Not sure whet

[Qemu-devel] buildbot failure in qemu on default_arm_devs.next

2012-12-11 Thread qemu
The Buildbot has detected a new failure on builder default_arm_devs.next while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_arm_devs.next/builds/18 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Build Rea

[Qemu-devel] buildbot failure in qemu on default_target_arm.next

2012-12-11 Thread qemu
The Buildbot has detected a new failure on builder default_target_arm.next while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_target_arm.next/builds/18 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Build

Re: [Qemu-devel] [PATCH 1/1] tmp105: Fix I2C protocol bug

2012-12-11 Thread Andreas Färber
Am 05.12.2012 20:48, schrieb Alex Horn: > The private buffer length field must only be incremented after the I2C > frame has been transmitted. > > To expose this bug, assume the temperature in the TMP105 hardware model > is +0.125 C (e.g. snow slush). Note that eleven bit precision is required > t

Re: [Qemu-devel] [PATCH v8 1/2] qemu-ga: execute hook to quiesce the guest on fsfreeze-freeze/thaw

2012-12-11 Thread Tomoki Sekiyama
To use the online disk snapshot for online-backup, application-level consistency of the snapshot image is required. However, currently the guest agent can provide only filesystem-level consistency, and the snapshot may contain dirty data, for example, incomplete transactions. This patch provides th

Re: [Qemu-devel] [PATCH v8 2/2] qemu-ga: sample fsfreeze hooks

2012-12-11 Thread Tomoki Sekiyama
Adds sample hook scripts for --fsfreeze-hook option of qemu-ga. - fsfreeze-hook : execute scripts in fsfreeze-hook.d/ - fsfreeze-hook.d/mysql-flush.sh.sample : quiesce MySQL before snapshot Signed-off-by: Tomoki Sekiyama --- .gitignore |1 Makefil

[Qemu-devel] [PATCH v8 0/2] qemu-ga: add hook to quiesce the guest on fsfreeze-freeze/thaw

2012-12-11 Thread Tomoki Sekiyama
Hi, This is version 8 of the qemu-ga fsfreeze hook patchset. *Changes from v7: ( http://patchwork.ozlabs.org/patch/204426/ ) 1/2: Not changed. 2/2: Moved .gitignore exception for fsfreeze-hook.d right below "*.d". Make fsfreeze success even if fsfreeze-hook.d doesn't exist. Use prin

[Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-11 Thread Scott Wood
QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman. Signed-off-by: Scott Wood --- There are undoubtedly some rough edges that need to be cleaned up and

Re: [Qemu-devel] [RFC PATCH 0/2] live backup vm

2012-12-11 Thread Wenchao Xia
OK, I'll adjust the code into the upstream framework, thanks for your declaration. > OK, I will try to give a short overview on the functionality. > > First, we decided to use 'internal' snapshots for our 'live snapshot' > implementation. > Internal snapshots almost always use some kind of ref

Re: [Qemu-devel] [Qemu-ppc] [PATCH 16/19] openpic: add Shared MSI support

2012-12-11 Thread Scott Wood
On 12/11/2012 06:53:44 PM, Alexander Graf wrote: On 11.12.2012, at 18:35, Scott Wood wrote: > On 12/11/2012 02:10:14 AM, Alexander Graf wrote: >> On 11.12.2012, at 01:36, Scott Wood wrote: >> > On 12/08/2012 07:44:39 AM, Alexander Graf wrote: >> >> The OpenPIC allows MSI access through shar

Re: [Qemu-devel] [PATCH 14/19] openpic: convert to qdev

2012-12-11 Thread Scott Wood
On 12/11/2012 06:56:56 PM, Alexander Graf wrote: On 11.12.2012, at 18:47, Scott Wood wrote: > On 12/11/2012 02:25:31 AM, Alexander Graf wrote: >> If we want a pv style generic mpic (for -M e500), let's add such an mpic to the model list and make that one be really generic. But the MPIC in -

Re: [Qemu-devel] [ [PATCH 2/2] qemu-img:report size overflow error message

2012-12-11 Thread li guang
在 2012-12-11二的 16:11 +0100,Markus Armbruster写道: > liguang writes: > > > qemu-img will complain when qcow or qcow2 > > size overflow for 64 bits, report the right > > message in this condition. > > Recommend to show the reproducer with output before and after the patch > in the commit message. O

Re: [Qemu-devel] [ [PATCH 1/2] cutils:change strtosz_suffix_unit function

2012-12-11 Thread li guang
在 2012-12-11二的 10:52 +0100,Stefan Hajnoczi写道: > On Fri, Dec 07, 2012 at 11:49:49AM +0800, liguang wrote: > > if value to be translated is larger than INT64_MAX, > > this function will not be convenient for caller to > > be aware of it, so change a little for this. > > > > Signed-off-by: liguang >

Re: [Qemu-devel] [PATCH 14/19] openpic: convert to qdev

2012-12-11 Thread Alexander Graf
On 11.12.2012, at 18:47, Scott Wood wrote: > On 12/11/2012 02:25:31 AM, Alexander Graf wrote: >> On 11.12.2012, at 00:47, Scott Wood wrote: >> > On 12/08/2012 07:44:37 AM, Alexander Graf wrote: >> >> This patch converts the OpenPIC device to qdev. Along the way it >> >> renames the "openpic" tar

Re: [Qemu-devel] [Qemu-ppc] [PATCH 16/19] openpic: add Shared MSI support

2012-12-11 Thread Alexander Graf
On 11.12.2012, at 18:35, Scott Wood wrote: > On 12/11/2012 02:10:14 AM, Alexander Graf wrote: >> On 11.12.2012, at 01:36, Scott Wood wrote: >> > On 12/08/2012 07:44:39 AM, Alexander Graf wrote: >> >> The OpenPIC allows MSI access through shared MSI registers. Implement >> >> them for the MPC8544

Re: [Qemu-devel] [PATCH 8/8] s390: Add new channel I/O based virtio transport.

2012-12-11 Thread Alexander Graf
On 11.12.2012, at 14:03, Cornelia Huck wrote: > On Tue, 11 Dec 2012 11:53:18 +0100 > Alexander Graf wrote: > >> >> On 07.12.2012, at 13:50, Cornelia Huck wrote: >> >>> Add a new virtio transport that uses channel commands to perform >>> virtio operations. >>> >>> Add a new machine type s390-

Re: [Qemu-devel] [PATCH 8/8] s390: Add new channel I/O based virtio transport.

2012-12-11 Thread Alexander Graf
On 11.12.2012, at 13:06, Christian Borntraeger wrote: > On 11/12/12 11:53, Alexander Graf wrote: >> >> On 07.12.2012, at 13:50, Cornelia Huck wrote: >> >>> Add a new virtio transport that uses channel commands to perform >>> virtio operations. >>> >>> Add a new machine type s390-ccw that uses

Re: [Qemu-devel] [RFC V3 01/24] qcow2: Add deduplication to the qcow2 specification.

2012-12-11 Thread Eric Blake
On 11/26/2012 06:05 AM, Benoît Canet wrote: > Signed-off-by: Benoit Canet > --- > docs/specs/qcow2.txt | 33 - > 1 file changed, 32 insertions(+), 1 deletion(-) > In addition to Stefan's comments, > @@ -159,6 +163,33 @@ the header extension data. Each entry lo

[Qemu-devel] [ANNOUNCE] QEMU 1.2.2 Stable released

2012-12-11 Thread mdroth
Hi everyone, I am pleased to announce that the QEMU v1.2.2 stable release is now available at: http://wiki.qemu.org/download/qemu-1.2.2.tar.bz2 The official stable-1.2 repository has also been updated to v1.2.2: http://git.qemu.org/?p=qemu-stable-1.2.git;a=summary This release includes 43 buil

[Qemu-devel] [PATCH v2 6/6] hw/ds1338.c: Fix handling of DAY (wday) register.

2012-12-11 Thread Antoine Mathys
Per the datasheet, the DAY (wday) register is user defined. Implement this. Signed-off-by: Antoine Mathys --- hw/ds1338.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/hw/ds1338.c b/hw/ds1338.c index 319c341..c5cee99 100644 --- a/hw/ds1338.c +++ b/hw/ds1

[Qemu-devel] [PATCH v2 5/6] hw/ds1338.c: Implement support for the control register.

2012-12-11 Thread Antoine Mathys
The previous patch has the side effect of clearing the control register. That's already its proper power-on-reset value. Signed-off-by: Antoine Mathys --- hw/ds1338.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/hw/ds1338.c b/hw/ds1338.c index 5a6234

[Qemu-devel] [PATCH v2 4/6] hw/ds1338.c: Ensure state is properly initialized.

2012-12-11 Thread Antoine Mathys
Signed-off-by: Antoine Mathys --- hw/ds1338.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/hw/ds1338.c b/hw/ds1338.c index 0f88720..b4d5b74 100644 --- a/hw/ds1338.c +++ b/hw/ds1338.c @@ -179,6 +179,15 @@ static int ds1338_init(I2CSlave *i2c) return 0; } +static void d

[Qemu-devel] [PATCH v2 3/6] hw/ds1338.c: Fix handling of HOURS register.

2012-12-11 Thread Antoine Mathys
Per the datasheet, the mapping between 12 and 24 hours modes is: 0 <-> 12 PM 1-12 <-> 1-12 AM 13-23 <-> 1-11 PM Signed-off-by: Antoine Mathys --- hw/ds1338.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/hw/ds13

[Qemu-devel] [PATCH v2 2/6] hw/ds1338.c: Add definitions for various flags in the RTC registers.

2012-12-11 Thread Antoine Mathys
Signed-off-by: Antoine Mathys --- hw/ds1338.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/ds1338.c b/hw/ds1338.c index faaa4a0..69018bc 100644 --- a/hw/ds1338.c +++ b/hw/ds1338.c @@ -17,6 +17,12 @@ */ #define NVRAM_SIZE 64 +/* Flags definitions */ +#define SECONDS_CH 0x80

[Qemu-devel] [PATCH v2 1/6] hw/ds1338.c: Correct bug in conversion to BCD.

2012-12-11 Thread Antoine Mathys
Signed-off-by: Antoine Mathys --- hw/ds1338.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ds1338.c b/hw/ds1338.c index b576d56..faaa4a0 100644 --- a/hw/ds1338.c +++ b/hw/ds1338.c @@ -57,9 +57,9 @@ static void capture_current_time(DS1338State *s) } else {

[Qemu-devel] [PATCH v2 0/6] hw/ds1338.c

2012-12-11 Thread Antoine Mathys
This is the second version of my series of patch to hw/ds1338.c It should address the various points that were made. The main difference with the previous version is that I dropped some stuff that will only be useful once we implement clock enable/disable.

Re: [Qemu-devel] Performance of usb tablet over ehci

2012-12-11 Thread Hans de Goede
Hi, On 12/11/2012 08:45 PM, luo_brian wrote: I just noticed a patch recently submitted to qemu, attempting to lower the cpu load for idle vm using usb tablet emulation. This is the comment of commit 427e3aa151c749225364d0c30640e2e3c1756d9d: usb-tablet: Allow connecting to ehci Our ehci cod

Re: [Qemu-devel] [PATCH 0/3] re-enable balloon stats

2012-12-11 Thread mdroth
On Tue, Dec 11, 2012 at 04:28:40PM -0200, Luiz Capitulino wrote: > On Tue, 11 Dec 2012 11:38:08 -0600 > mdroth wrote: > > > On Tue, Dec 11, 2012 at 03:14:02PM +, Dietmar Maurer wrote: > > > > > > I'm not sure I like this for two reasons. First, there will be cases > > > > > > where the user d

[Qemu-devel] [PATCH] RTC: enable lost_tick_policy=slew as default

2012-12-11 Thread Marcelo Tosatti
RTC interrupt reinjection has no known negative effect. Lack of RTC interrupt reinjection, though, has negative effects: time drift for Windows guests which use it as a timer source. Based on that, enable lost_tick_policy=slew option as default. Signed-off-by: Marcelo Tosatti diff --git a/hw

[Qemu-devel] [PATCH] build: Use separate makefile for "trace/"

2012-12-11 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- .gitignore |6 +-- Makefile|8 ++- Makefile.objs | 64 +--- scripts/tracetool/backend/dtrace.py |2 - trace/Makefile.objs | 81 +

[Qemu-devel] [PATCH] build: Use separate makefile for "trace/"

2012-12-11 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- .gitignore |6 +-- Makefile|8 ++- Makefile.objs | 64 +--- scripts/tracetool/backend/dtrace.py |2 - trace/Makefile.objs | 81 +

[Qemu-devel] Performance of usb tablet over ehci

2012-12-11 Thread luo_brian
I just noticed a patch recently submitted to qemu, attempting to lower the cpu load for idle vm using usb tablet emulation. This is the comment of commit 427e3aa151c749225364d0c30640e2e3c1756d9d: usb-tablet: Allow connecting to ehci Our ehci code has is capable of significantly lowering the wa

Re: [Qemu-devel] [PATCH 0/3] re-enable balloon stats

2012-12-11 Thread Luiz Capitulino
On Tue, 11 Dec 2012 19:39:40 + Dietmar Maurer wrote: > > > > but it would silently fail if the feature is never negotiated (as > > > > you said above). > > > > > > Why don't we raise the error when we query the values? > > > > Hmm, that's a good idea. > > > > Only small nit is that, today o

Re: [Qemu-devel] [PATCH 0/3] re-enable balloon stats

2012-12-11 Thread Dietmar Maurer
> > > but it would silently fail if the feature is never negotiated (as > > > you said above). > > > > Why don't we raise the error when we query the values? > > Hmm, that's a good idea. > > Only small nit is that, today old stats will remain available to be queried > even > if you disable the t

Re: [Qemu-devel] [PATCH 0/3] re-enable balloon stats

2012-12-11 Thread Luiz Capitulino
On Tue, 11 Dec 2012 19:07:48 + Dietmar Maurer wrote: > > I could move the check for the stats feature bit from the function that > > enables polling to the timer callback. This would solve Dietmar's use-case, > > that would be great. > > > but it would silently fail if the feature is never

Re: [Qemu-devel] [PATCH 0/3] re-enable balloon stats

2012-12-11 Thread Dietmar Maurer
> I could move the check for the stats feature bit from the function that > enables polling to the timer callback. This would solve Dietmar's use-case, that would be great. > but it would silently fail if the feature is never negotiated (as you said > above). Why don't we raise the error when we

Re: [Qemu-devel] [PATCH 0/3] re-enable balloon stats

2012-12-11 Thread Luiz Capitulino
On Tue, 11 Dec 2012 11:38:08 -0600 mdroth wrote: > On Tue, Dec 11, 2012 at 03:14:02PM +, Dietmar Maurer wrote: > > > > > I'm not sure I like this for two reasons. First, there will be cases > > > > > where the user doesn't want this to be enabled. Second, we'll be > > > > > forcing an interva

[Qemu-devel] Internal documentation

2012-12-11 Thread Michael Eager
Hi -- Is there any internal documentation for QEMU? I'm adding support for a new processor. I'm currently adding semihosting support and a new command line option. I find that I'm reading a lot of uncommented code and trying to reverse engineer QEMU's design by reading how various targets are i

Re: [Qemu-devel] [PATCH 2/3] Make-repl_ph-to-sign-extended-to-target_long

2012-12-11 Thread Andreas Färber
Am 11.12.2012 16:13, schrieb Markus Armbruster: > Please-separate-words-with-spaces-in-your-subject-line-thank-you-:) Also all three patches should have a "target-mips: " prefix in the subject to make clear what they touch and who must review and later commit these. Andreas -- SUSE LINUX Produc

Re: [Qemu-devel] [PATCH 0/3] re-enable balloon stats

2012-12-11 Thread Luiz Capitulino
On Tue, 11 Dec 2012 16:28:40 -0200 Luiz Capitulino wrote: > On Tue, 11 Dec 2012 11:38:08 -0600 > mdroth wrote: > > > On Tue, Dec 11, 2012 at 03:14:02PM +, Dietmar Maurer wrote: > > > > > > I'm not sure I like this for two reasons. First, there will be cases > > > > > > where the user doesn'

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-11 Thread Michael S. Tsirkin
On Tue, Dec 11, 2012 at 10:32:28AM -0600, Anthony Liguori wrote: > "Michael S. Tsirkin" writes: > > > On Tue, Dec 11, 2012 at 04:27:49PM +0100, Stefan Hajnoczi wrote: > >> On Tue, Dec 11, 2012 at 3:13 PM, Michael S. Tsirkin > >> wrote: > >> > On Mon, Dec 10, 2012 at 02:09:36PM +0100, Stefan Haj

Re: [Qemu-devel] [PATCH 14/19] openpic: convert to qdev

2012-12-11 Thread Scott Wood
On 12/11/2012 02:25:31 AM, Alexander Graf wrote: On 11.12.2012, at 00:47, Scott Wood wrote: > On 12/08/2012 07:44:37 AM, Alexander Graf wrote: >> This patch converts the OpenPIC device to qdev. Along the way it >> renames the "openpic" target to "raven" and the "mpic" target to >> "mpc8544",

Re: [Qemu-devel] [RFC PATCH v7 0/8] Virtio refactoring.

2012-12-11 Thread Peter Maydell
On 10 December 2012 16:45, wrote: > From: KONRAD Frederic > > You can clone that from here : > git.greensocs.com/home/greensocs/git/qemu_virtio.git virtio_refactoring_v7 > > These are the two last steps of refactoring ( only for virtio-blk device. ): > > * It modifies virtio-blk-pci to exten

Re: [Qemu-devel] [RFC PATCH v7 7/8] virtio-pci-blk : Switch to new API.

2012-12-11 Thread Peter Maydell
On 10 December 2012 16:45, wrote: > From: KONRAD Frederic > > Here the virtio-blk-pci is modified for the new API. The device virtio-pci-blk > extends virtio-pci. It creates and connects a virtio-blk during the init. Did you check whether this maintains backwards compatibility for vmstate migra

Re: [Qemu-devel] [PATCH] Fix error code checking for SetFilePointer() call

2012-12-11 Thread Fabien Chouteau
On 12/11/2012 10:21 AM, Stefan Hajnoczi wrote: > The fprintf() is kind of iffy but we only return -EIO so I guess it > helps to print the full error. I add it because it took me a while to get to the actual error. Without it the error message is even more cryptic: qemu-system-ppc.exe: -hda fat:no

Re: [Qemu-devel] [PATCH v7 00/10] i8254, i8259 and running Microport UNIX (ca 1987)

2012-12-11 Thread Gleb Natapov
On Sun, Nov 25, 2012 at 02:51:36PM -0700, Matthew Ogilvie wrote: > This series makes a series of mostly-unrelated fixes to allow > running an old Microport UNIX (ca 1987) guest under qemu. > > Changes since version 6: >* Patches 1 through 6 haven't changed, other than resolving > a couple

Re: [Qemu-devel] [PATCH 0/3] re-enable balloon stats

2012-12-11 Thread mdroth
On Tue, Dec 11, 2012 at 03:14:02PM +, Dietmar Maurer wrote: > > > > I'm not sure I like this for two reasons. First, there will be cases > > > > where the user doesn't want this to be enabled. Second, we'll be > > > > forcing an interval on users. > > > > > > So when should we set the stats-pol

Re: [Qemu-devel] [Qemu-ppc] [PATCH 02/19] mpic: Unify numbering scheme

2012-12-11 Thread Scott Wood
On 12/11/2012 02:14:42 AM, Alexander Graf wrote: On 11.12.2012, at 00:34, Scott Wood wrote: > On 12/08/2012 07:44:25 AM, Alexander Graf wrote: >> +/* These are available through separate regions, but >> + for simplicity's sake mapped into the same number space */ >> +#define MPIC_TMR_IRQ

Re: [Qemu-devel] [Qemu-ppc] [PATCH 16/19] openpic: add Shared MSI support

2012-12-11 Thread Scott Wood
On 12/11/2012 02:10:14 AM, Alexander Graf wrote: On 11.12.2012, at 01:36, Scott Wood wrote: > On 12/08/2012 07:44:39 AM, Alexander Graf wrote: >> The OpenPIC allows MSI access through shared MSI registers. Implement >> them for the MPC8544 MPIC, so we can support MSIs. >> Signed-off-by: Al

Re: [Qemu-devel] [PATCH 2/2] softfloat: Implement uint64_to_float128

2012-12-11 Thread Peter Maydell
On 11 December 2012 17:21, Richard Henderson wrote: > Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH 1/2] softfloat: Fix uint64_to_float64

2012-12-11 Thread Peter Maydell
On 11 December 2012 17:21, Richard Henderson wrote: > The interface to normalizeRoundAndPackFloat64 requires that the > high bit be clear. Perform one shift-right-and-jam if needed. > > Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [RFC PATCH v7 6/8] virtio-blk : Add the virtio-blk device.

2012-12-11 Thread Peter Maydell
On 10 December 2012 16:45, wrote: > From: KONRAD Frederic > > Create virtio-blk which extends virtio-device, so it can be connected on > virtio-bus. > +static int virtio_device_init(DeviceState *qdev) > +{ This is a not a very well named function. It's blk specific but the function name implie

Re: [Qemu-devel] [RFC PATCH v7 8/8] virtio-blk : QOM modifications.

2012-12-11 Thread Peter Maydell
On 10 December 2012 16:45, wrote: > From: KONRAD Frederic > > As the virtio-blk-pci is switched to the new API, we can use QOM casts and > remove the separate init for the old API. This patch effectively breaks virtio_blk_init() [because it removes the code path that handles s==NULL] but it doe

Re: [Qemu-devel] [PATCH 1/3] Fix my email address

2012-12-11 Thread Stefan Weil
Am 11.12.2012 15:28, schrieb Dongxue Zhang: Fix my email address, last time it's wrong. Signed-off-by: Dongxue Zhang --- target-mips/dsp_helper.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-mips/dsp_helper.c b/target-mips/dsp_helper.c index 14daf91..536032b

[Qemu-devel] [PATCH 2/2] softfloat: Implement uint64_to_float128

2012-12-11 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 8 fpu/softfloat.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 0daad0d..506defb 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -1339,6 +1339,14 @@ float128 int64_to_float128

[Qemu-devel] [PATCH v3 0/2] soft-float-fixes for target-s390x

2012-12-11 Thread Richard Henderson
Changes v2-v3: Ignore softfloat "style" completely. Code now formatted per QEMU. Changes v1-v2: Incorporating feedback from Peter Maydell (previously missed in the 140+ message thread). r~ Richard Henderson (2): softfloat: Fix uint64_to_float64 softfloat: Implement uint64_to_float12

[Qemu-devel] [PATCH 1/2] softfloat: Fix uint64_to_float64

2012-12-11 Thread Richard Henderson
The interface to normalizeRoundAndPackFloat64 requires that the high bit be clear. Perform one shift-right-and-jam if needed. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-11 Thread Anthony Liguori
"Michael S. Tsirkin" writes: > On Tue, Dec 11, 2012 at 04:27:49PM +0100, Stefan Hajnoczi wrote: >> On Tue, Dec 11, 2012 at 3:13 PM, Michael S. Tsirkin wrote: >> > On Mon, Dec 10, 2012 at 02:09:36PM +0100, Stefan Hajnoczi wrote: >> >> The data plane thread needs to map guest physical addresses to

[Qemu-devel] [PATCH] target-arm: Fix TCG temp leaks for WI and UNDEF VFP sysreg writes

2012-12-11 Thread Peter Maydell
Fix a leak of a TCG temporary in code paths for VFP system register writes for cases which UNDEF or are write-ignored. Signed-off-by: Peter Maydell --- target-arm/translate.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target-arm/translate.c b/target-arm/translate.

[Qemu-devel] [PATCH 3/6] hw/arm_gic_common: Correct GICC_PMR reset value for newer GICs

2012-12-11 Thread Peter Maydell
The GIC architecture specification for v1 and v2 GICs (as found on the Cortex-A9 and newer) states that the GICC_PMR reset value is zero; this differs from the 0xf0 reset value used on 11MPCore. The NVIC is different again in not having a CPU interface; since we share the GIC code we must force the

[Qemu-devel] [PATCH 6/6] exynos4210/mct: Avoid infinite loop on non incremental timers

2012-12-11 Thread Peter Maydell
From: Jean-Christophe DUBOIS Check for a 0 "distance" value to avoid infinite loop when the expired FCR timer was not programed with auto-increment. With this change the behavior is coherent with the same type of code in the exynos4210_gfrc_restart() function in the same file. Linux seems to mo

[Qemu-devel] [Bug 1087974] Re: [regression] vnc tight png produces garbled output

2012-12-11 Thread Tim Hardeck
If you had opened vnc.html before the rfb.js might be still in the browser cache, at least I had a similar issue once. I have tested this with Chrome but I think it happened in Firefox too. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to Q

[Qemu-devel] [PULL 0/6] arm-devs queue

2012-12-11 Thread Peter Maydell
ARM devices pullreq, nothing exciting here. Please pull. thanks -- PMM The following changes since commit 1c97e303d4ea80a2691334b0febe87a50660f99d: Merge remote-tracking branch 'afaerber/qom-cpu' into staging (2012-12-10 08:35:15 -0600) are available in the git repository at: git://git.

[Qemu-devel] [PATCH 2/6] hw/arm_gic: Fix comparison with priority mask register

2012-12-11 Thread Peter Maydell
The GIC spec states that only interrupts with higher priority than the value in the GICC_PMR priority mask register are passed through to the processor. We were incorrectly allowing through interrupts with a priority equal to the specified value: correct the comparison operation to match the spec.

[Qemu-devel] [PATCH 4/6] xilinx_zynq: Add one variable to avoid overwriting QSPI bus

2012-12-11 Thread Peter Maydell
From: walimis commit 7b482bcf xilinx_zynq: added QSPI controller Adds one QSPI controller, which has two spi buses, one is for spi0, and another is for spi1. But when initializing the spi1 bus, "dev" has been overwrited by the ssi_create_slave_no_init() function, so that qdev_get_child_bus() ret

[Qemu-devel] [PATCH 5/6] hw/arm_gic: fix target CPUs affected by set enable/pending ops

2012-12-11 Thread Peter Maydell
From: Daniel Sangorrin Fix a bug on the ARM GIC model where interrupts are not set pending on the correct target CPUs when they are triggered by writes to the Interrupt Set Enable or Set Pending registers. Signed-off-by: Daniel Sangorrin Signed-off-by: Peter Maydell --- hw/arm_gic.c |5 ++

Re: [Qemu-devel] [PATCH V7 00/10] replace QEMUOptionParameter with QemuOpts parser

2012-12-11 Thread Kevin Wolf
Am 06.12.2012 07:47, schrieb Dong Xu Wang: > Patch 1-3 are from Luiz, added Markus's comments, discussion could be found > here: > http://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg02716.html > Patch 3 was changed according Paolo's comments. > > Patch 4-5: because qemu_opts_create can no

Re: [Qemu-devel] [PATCH V7 09/10] Use QemuOpts support in block layer

2012-12-11 Thread Kevin Wolf
Am 06.12.2012 07:47, schrieb Dong Xu Wang: > This patch will use QemuOpts related functions in block layer, add > a member bdrv_create_options to BlockDriver struct, it will return > a QemuOptsList pointer, which includes the image format's create > options. > > And create options's primary consum

Re: [Qemu-devel] [PATCH V7 07/10] add def_print_str and use it in qemu_opts_print.

2012-12-11 Thread Kevin Wolf
Am 06.12.2012 07:47, schrieb Dong Xu Wang: > qemu_opts_print has no user now, so can re-write the function safely. > > qemu_opts_print will be used while using "qemu-img create", it will > produce the same output as previous code. > > The behavior of this function has changed: > > 1. Print every

[Qemu-devel] [PATCH 1/6] hw/arm_boot, exynos4210, highbank: Fix secondary boot GIC init

2012-12-11 Thread Peter Maydell
Fix the code in the secondary CPU boot stubs so that it correctly initialises the GIC rather than relying on bugs or implementation dependent aspects of the QEMU GIC implementation: * set the GIC_PMR.Priority field to all-ones, so that all interrupts are passed through. The default of all-zeroe

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-11 Thread Michael S. Tsirkin
On Tue, Dec 11, 2012 at 04:27:49PM +0100, Stefan Hajnoczi wrote: > On Tue, Dec 11, 2012 at 3:13 PM, Michael S. Tsirkin wrote: > > On Mon, Dec 10, 2012 at 02:09:36PM +0100, Stefan Hajnoczi wrote: > >> The data plane thread needs to map guest physical addresses to host > >> pointers. Normally this

Re: [Qemu-devel] [Bug 1087974] Re: [regression] vnc tight png produces garbled output

2012-12-11 Thread Gerd Hoffmann
On 12/11/12 11:09, Tim Hardeck wrote: > * make sure that qemu is compiled with --enable-vnc-png > > * git clone git://github.com/kanaka/noVNC > * edit include/rfb.js at line 50 and comment out or remove all encodings > above "['TIGHT_PNG',-260 ]," > * open vnc.html in Firefox or Chrome >

Re: [Qemu-devel] [PATCH v6 03/12] dataplane: add host memory mapping code

2012-12-11 Thread Stefan Hajnoczi
On Tue, Dec 11, 2012 at 3:13 PM, Michael S. Tsirkin wrote: > On Mon, Dec 10, 2012 at 02:09:36PM +0100, Stefan Hajnoczi wrote: >> The data plane thread needs to map guest physical addresses to host >> pointers. Normally this is done with cpu_physical_memory_map() but the >> function assumes the gl

Re: [Qemu-devel] [PATCH 0/3] re-enable balloon stats

2012-12-11 Thread Dietmar Maurer
> > > I'm not sure I like this for two reasons. First, there will be cases > > > where the user doesn't want this to be enabled. Second, we'll be > > > forcing an interval on users. > > > > So when should we set the stats-polling-interval? I first thought I > > simply set that at VM start, but that

Re: [Qemu-devel] [PATCH 2/3] Make-repl_ph-to-sign-extended-to-target_long

2012-12-11 Thread Markus Armbruster
Please-separate-words-with-spaces-in-your-subject-line-thank-you-:)

Re: [Qemu-devel] [ [PATCH 2/2] qemu-img:report size overflow error message

2012-12-11 Thread Markus Armbruster
liguang writes: > qemu-img will complain when qcow or qcow2 > size overflow for 64 bits, report the right > message in this condition. Recommend to show the reproducer with output before and after the patch in the commit message.

Re: [Qemu-devel] [RFC] i.MX233 / olinuxino support

2012-12-11 Thread Peter Maydell
On 11 December 2012 15:08, M P wrote: > On Tue, Dec 11, 2012 at 2:57 PM, Peter Maydell > wrote: >> "Showing 11 changed files with 2,236 additions and 0 deletions." >> >> That commit absolutely has to be broken up into a coherent set of >> smaller patches; it is far too big to code review as it st

Re: [Qemu-devel] [RFC] i.MX233 / olinuxino support

2012-12-11 Thread M P
On Tue, Dec 11, 2012 at 2:57 PM, Peter Maydell wrote: > On 11 December 2012 13:08, M P wrote: > > I've added imx23 support to qemu, with quite a lot of working > peripherals, > > and enough to boot linux with SD card and USB working. There are bits > > missing (audio, video outputs) but it's othe

Re: [Qemu-devel] [PATCH 2/3] Make-repl_ph-to-sign-extended-to-target_long

2012-12-11 Thread Jovanovic, Petar
lgtm, though I wish there was a test for this in repl_ph.c. + cc Aurelien J. Petar From: Dongxue Zhang [elta@gmail.com] Sent: Tuesday, December 11, 2012 3:28 PM To: qemu-devel@nongnu.org Cc: che...@iis.sinica.edu.tw; Jovanovic, Petar; r...@twiddle.net;

  1   2   3   >