[Qemu-devel] [PATCH v2] target-arm: GIC: bug fixes for arm_gic.c

2012-12-07 Thread Daniel Sangorrin
Sorry, it seems that I did not understand the flow in the function "hw/arm_gic.c:gic_dist_writeb()" and made some mistaken assumptions in my previous patch. Please do not apply the previous patch, and apply this one instead if you consider that it is correct. target-arm: fix bug in irq value on ar

Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-07 Thread Nikunj A Dadhania
Hi Erlon, Erlon Cruz writes: > Hi Alex, > > >> Could you please post >> >> * the exact command line you were using >> > > ./ppc64-softmmu/qemu-system-ppc64 -machine type=pseries,usb=off -m 512 > -net nic,vlan=0 -net tap -nographic -cdrom > /exports/isos/SLES-11-SP2-DVD-ppc64-GM-DVD1.iso -hda

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.3.0 release

2012-12-07 Thread Gerhard Wiesinger
On 07.12.2012 08:37, Markus Armbruster wrote: Gerhard Wiesinger writes: On 03.12.2012 21:51, Anthony Liguori wrote: Hi, Major features include: - After nearly 6 years of work, all remaining differences between the qemu-kvm.git and qemu.git have been merged into qemu.git How is qemu

[Qemu-devel] [PATCH] target-arm: GIC: bug fixes for arm_gic.c

2012-12-07 Thread Daniel Sangorrin
Hi, I found some bugs in the way the IRQ number is calculated at certain places in arm_gic.c. Perhaps there are a few more errors that I didn't notice. These bugs were not noticeable when running Linux as a guest, but I found them when running my own porting of a multicore real-time OS (TOPPERS/FMP

[Qemu-devel] [PATCH_v3] add target-openrisc floating point exception

2012-12-07 Thread Feng
From: Feng Gao This patch complete target-openrisc floating point exception. When float exception, the right PC can be saved, so exception handler could do proper processing, and back to the right address letting the program continue. The patch I have tested it ok. --- target-openrisc/exception

Re: [Qemu-devel] [BUG] QEMU crashes when 64bit BAR is present

2012-12-07 Thread Gerd Hoffmann
On 12/07/12 01:22, Alexey Korolev wrote: > On 06/12/12 20:45, Gerd Hoffmann wrote: >> On 12/06/12 05:09, Alexey Korolev wrote: >>> I tried the head today. >>> Qemu crashes in the same way as before. >> Hmm. Doesn't reproduce here (using RHEL-5 as guest, although it is 5.8 >> so more recent than yo

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.3.0 release

2012-12-07 Thread Markus Armbruster
Gerhard Wiesinger writes: > On 07.12.2012 08:37, Markus Armbruster wrote: >> Gerhard Wiesinger writes: >> >>> On 03.12.2012 21:51, Anthony Liguori wrote: Hi, Major features include: - After nearly 6 years of work, all remaining differences between the qemu-kvm.gi

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

2012-12-07 Thread Wenchao Xia
This patch is a scratch which enables a full live backup of VM, actually it is equal to savevm lively. As a test it uses hmp command migrate to trigger the action. The ultimate goal is providing another command to user as: snapshotvm [with_state] [internal] [live] which then create vm backups

[Qemu-devel] [RFC PATCH 2/2] live backup vm, snapshots all lively

2012-12-07 Thread Wenchao Xia
This patch uses a tricky to do live migration to local block images, and then create internal snapshots. So basically this patch connect function in live migration and savevm to get a full live back effect. In monitor, type migrate image: to trigger this action for a test. Signed-off-by: Wench

[Qemu-devel] [RFC PATCH 1/2] live backup vm, export functions

2012-12-07 Thread Wenchao Xia
This patch moved bdrv_snapshot_find() from savevm.c to block.c, also exports some function in savevm.c. Signed-off-by: Wenchao Xia --- block.c | 21 + block.h |2 ++ savevm.c | 37 +++-- sysemu.h |2 ++ 4 files changed, 36 inser

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

2012-12-07 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

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

2012-12-07 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

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

2012-12-07 Thread Tomoki Sekiyama
Hi, This is version 7 of the qemu-ga fsfreeze hook patchset. *Changes from v6: ( http://patchwork.ozlabs.org/patch/202959/ ) 1/2: Improved an error message on failure of access(2) to fsfreeze-hook. 2/2: Moved hook scripts from docs/ to scripts/. Move fsfreeze.d.sample/flush-mysql.sh to fs

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.3.0 release

2012-12-07 Thread Paolo Bonzini
Il 07/12/2012 09:44, Markus Armbruster ha scritto: >> > Is it possible to have only one binary built and switch between qemu >> > and qemu-kvm by specifying a command line option? >> > Another possibility might be when binary is name qemu-kvm KVM is >> > enabled otherwise not- >> > >> > Therefore 2

Re: [Qemu-devel] [PATCH v3 2/3] target-i386:make hw_breakpoint_enabled return bool type

2012-12-07 Thread Peter Maydell
On 7 December 2012 01:25, liguang wrote: > Signed-off-by: liguang > --- > target-i386/cpu.h | 15 +-- > 1 files changed, 13 insertions(+), 2 deletions(-) > > diff --git a/target-i386/cpu.h b/target-i386/cpu.h > index 29245d1..3646128 100644 > --- a/target-i386/cpu.h > +++ b/target-

Re: [Qemu-devel] [PATCH v3 3/3] target-i386:slightly refactor dr7 related function

2012-12-07 Thread Peter Maydell
On 7 December 2012 01:25, liguang wrote: > diff --git a/target-i386/seg_helper.c b/target-i386/seg_helper.c > index ff93374..16d489a 100644 > --- a/target-i386/seg_helper.c > +++ b/target-i386/seg_helper.c > @@ -465,9 +465,9 @@ static void switch_tss(CPUX86State *env, int tss_selector, > > #ifnde

Re: [Qemu-devel] [PATCH v3 2/3] target-i386:make hw_breakpoint_enabled return bool type

2012-12-07 Thread Jan Kiszka
On 2012-12-07 11:24, Peter Maydell wrote: > On 7 December 2012 01:25, liguang wrote: >> Signed-off-by: liguang >> --- >> target-i386/cpu.h | 15 +-- >> 1 files changed, 13 insertions(+), 2 deletions(-) >> >> diff --git a/target-i386/cpu.h b/target-i386/cpu.h >> index 29245d1..36461

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

2012-12-07 Thread Dietmar Maurer
We already have a full functional implementation to create live snapshots including VM state. The interface allows you to create internal snapshots, or use external tools to create the blockdev snapshots directly on the underlying storage (we use that with nexenta). VM state is stored directly

Re: [Qemu-devel] [PATCH v5 10/11] dataplane: add virtio-blk data plane code

2012-12-07 Thread Paolo Bonzini
Il 07/12/2012 07:06, Stefan Hajnoczi ha scritto: > BTW I should go into slightly more detail about why I stopped short of > implementing the notify+join approach. > > notify+join means stopping the event loop and data plane thread so > that the caller is sure that virtio-blk-data-plane is quiesced

[Qemu-devel] [PATCH V8 1/5] Adding utility function net_checksum_add_cont() that allows checksum calculation of scattered data with odd chunk sizes

2012-12-07 Thread Dmitry Fleytman
Adding utility function net_raw_checksum() that calculates checksum of buffer given Signed-off-by: Dmitry Fleytman Signed-off-by: Yan Vugenfirer --- net/checksum.c | 13 +++-- net/checksum.h | 14 +- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/net/checksu

[Qemu-devel] [PATCH V8 0/5] VMXNET3 paravirtual NIC device implementation

2012-12-07 Thread Dmitry Fleytman
This set of patches implements VMWare VMXNET3 paravirtual NIC device. The device supports of all the device features including offload capabilties, VLANs and etc. The device is tested on different OSes: Fedora 15 Ubuntu 10.4 Centos 6.2 Windows 2008R2 Windows 2008 64bit Windo

[Qemu-devel] [PATCH V8 4/5] Adding packet abstraction for VMWARE network devices

2012-12-07 Thread Dmitry Fleytman
Signed-off-by: Dmitry Fleytman --- hw/vmxnet_pkt.c | 758 hw/vmxnet_pkt.h | 309 +++ 2 files changed, 1067 insertions(+) create mode 100644 hw/vmxnet_pkt.c create mode 100644 hw/vmxnet_pkt.h diff --git a/hw/vmxnet_pk

[Qemu-devel] [PATCH V8 2/5] Adding utility function net_checksum_add_iov() for iovec checksum calculation

2012-12-07 Thread Dmitry Fleytman
Signed-off-by: Dmitry Fleytman Signed-off-by: Yan Vugenfirer --- iov.h | 5 + net/checksum.c | 28 net/checksum.h | 8 3 files changed, 41 insertions(+) diff --git a/iov.h b/iov.h index 34c8ec9..c184a80 100644 --- a/iov.h +++ b/iov.h @@ -11,6

[Qemu-devel] [PATCH 11/13] Fix spelling in comments and documentation

2012-12-07 Thread Stefan Hajnoczi
From: Stefan Weil These spelling bugs were found by codespell: supressing -> suppressing transfered -> transferred Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- hw/usb.h | 6 +++--- tests/qemu-iotests/iotests.py | 2 +- 2 files changed, 4 insertions(+), 4

[Qemu-devel] [PATCH V8 3/5] Adding common definitions for VMWARE devices

2012-12-07 Thread Dmitry Fleytman
Signed-off-by: Dmitry Fleytman Signed-off-by: Yan Vugenfirer --- hw/vmware_utils.h | 143 +++ hw/vmxnet_debug.h | 121 +++ hw/vmxnet_utils.c | 219 +++ hw/vmxnet_utils.h | 340

Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-07 Thread Erlon Cruz
Hi Nikunj, Its probabily might be a problem that happen only with SLES. I could install fedora 17 ppc. The instalation was OK, the only problem I had was in the boot, fedora needs the NVRAM capability. David, Is this upstream already? Erlon On Fri, Dec 7, 2012 at 6:10 AM, Nikunj A Dadhania wrot

[Qemu-devel] [PATCH 05/13] s390x: Spelling fixes (endianess -> endianness, occured -> occurred)

2012-12-07 Thread Stefan Hajnoczi
From: Stefan Weil Replace also "write into" by "write to". Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- hw/s390x/sclp.h| 4 ++-- hw/s390x/sclpconsole.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/s390x/sclp.h b/hw/s390x/sclp.h index fe8

[Qemu-devel] [PATCH 10/13] Clean up pci_drive_hot_add()'s use of BlockInterfaceType

2012-12-07 Thread Stefan Hajnoczi
From: Markus Armbruster pci_drive_hot_add() parameter type has the wrong type: int instead of BlockInterfaceType. It's actually redundant, so we can just drop it. Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- hw/device-hotplug.c | 11 --- hw/pci-hotplug.c|

[Qemu-devel] [PATCH 02/13] configure: Remove stray debug output

2012-12-07 Thread Stefan Hajnoczi
From: Peter Maydell Rather than printing a message saying we're silently falling back to gthread coroutines when running on MacOS, actually do it silently. Signed-off-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- configure | 2 -- 1 file changed, 2 deletions(-) diff --git a/configure

[Qemu-devel] [PATCH 12/13] qemu-options: Fix space at EOL

2012-12-07 Thread Stefan Hajnoczi
From: Michal Privoznik There's no need to add a space at the end of line. Moreover, it can make problems in some projects that store the help output into a file (and run couple of tests based on that) and have space at EOL forbidden. Signed-off-by: Michal Privoznik Reviewed-by: Peter Maydell S

[Qemu-devel] [PATCH 13/13] pc_sysfw: Plug memory leak on pc_fw_add_pflash_drv() error path

2012-12-07 Thread Stefan Hajnoczi
From: Markus Armbruster Harmless, because we the error inevitably leads to another, fatal one in pc_system_flash_init(): PC system firmware (pflash) not available. Fix it anyway. Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- hw/pc_sysfw.c | 4 +++- 1 file changed, 3 inse

[Qemu-devel] [PATCH 03/13] Fix spelling (prefered -> preferred)

2012-12-07 Thread Stefan Hajnoczi
From: Stefan Weil Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure | 2 +- net/tap-win32.c | 7 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 447e6ed..79605d2 100755 --- a/configure +++ b/configure @@ -2130,7 +21

Re: [Qemu-devel] [PATCH 1/2] qapi: add visitor for parsing int[KMGT] input string

2012-12-07 Thread Eduardo Habkost
On Thu, Dec 06, 2012 at 10:12:04PM +0100, Igor Mammedov wrote: > Caller of visit_type_unit_suffixed_int() will have to specify > value of 'K' suffix via unit argument. > For Kbytes it's 1024, for Khz it's 1000. > > Signed-off-by: Igor Mammedov > --- > v2: > - convert type_freq to type_unit_suf

[Qemu-devel] [PULL 00/13] Trivial patches for 2 to 7 November

2012-12-07 Thread Stefan Hajnoczi
These patches were mostly submitted during the 1.3 hard freeze. I'll catch up with the new trivial patches next week. The following changes since commit 80625b97b52836b944a6438e8e3e9d992e6a00b6: xilinx_uartlite: Accept input after rx FIFO pop (2012-12-05 09:20:36 +0100) are available in the g

Re: [Qemu-devel] [PATCH 2/2] target-i386: use visit_type_unit_suffixed_int() to parse tsc_freq property value

2012-12-07 Thread Eduardo Habkost
On Thu, Dec 06, 2012 at 10:12:05PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > --- > v2: >- replace visit_type_freq() with visit_type_unit_suffixed_int() > in x86_cpuid_set_tsc_freq() visit_type_unit_suffixed_int() matches the behavior of the current tsc_freq parsing c

Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-07 Thread Alexander Graf
On 07.12.2012, at 12:48, Erlon Cruz wrote: > Hi Nikunj, > > Its probabily might be a problem that happen only with SLES. I could install > fedora 17 ppc. The instalation was OK, the only problem I had was in the > boot, fedora needs the NVRAM capability. > David, Is this upstream already? It

[Qemu-devel] [PATCH 06/13] target-alpha: Remove t0, t1 from CPUAlphaState

2012-12-07 Thread Stefan Hajnoczi
From: Richard Henderson These fields are no longer (or were never?) used. Signed-off-by: Richard Henderson Signed-off-by: Stefan Hajnoczi --- target-alpha/cpu.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h index 34221fb..9939d61 100644 ---

[Qemu-devel] [PATCH 09/13] arm: a9mpcore: remove un-used ptimer_iomem field

2012-12-07 Thread Stefan Hajnoczi
From: Peter Crosthwaite I'm guessing this is a hangover from a previous coreification of the mptimer sub-module. This field is completely unused - removed. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- hw/a9mpcore.c | 1 - 1 file changed, 1 de

[Qemu-devel] [PATCH 04/13] Fix comments (adress -> address, layed -> laid, wierd -> weird)

2012-12-07 Thread Stefan Hajnoczi
From: Stefan Weil Remove also a duplicated 'the'. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- slirp/ip_icmp.c | 2 +- tcg/tcg.h | 4 ++-- uri.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/slirp/ip_icmp.c b/slirp/ip_icmp.c index d5

[Qemu-devel] [PATCH 08/13] target-sparc: Remove t0, t1 from CPUSPARCState

2012-12-07 Thread Stefan Hajnoczi
From: Richard Henderson These fields are no longer used. Cc: Blue Swirl Signed-off-by: Richard Henderson Signed-off-by: Stefan Hajnoczi --- target-sparc/cpu.h | 1 - 1 file changed, 1 deletion(-) diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 042d52a..375f20a 100644 --- a/target

[Qemu-devel] [PATCH 07/13] target-m68k: Remove t1 from CPUM68KState

2012-12-07 Thread Stefan Hajnoczi
From: Richard Henderson This field is no longer used. Cc: Paul Brook Signed-off-by: Richard Henderson Signed-off-by: Stefan Hajnoczi --- target-m68k/cpu.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/target-m68k/cpu.h b/target-m68k/cpu.h index 780e2c9..f4fcdee 100644 --- a/target-m6

Re: [Qemu-devel] [PATCH v2] target-arm: GIC: bug fixes for arm_gic.c

2012-12-07 Thread Peter Maydell
On 7 December 2012 08:07, Daniel Sangorrin wrote: > Sorry, it seems that I did not understand the flow in the function > "hw/arm_gic.c:gic_dist_writeb()" and made some mistaken assumptions in > my previous patch. Please do not apply the previous patch, and apply > this one instead if you consider

[Qemu-devel] [PATCH 01/13] sd: Send debug printfery to stderr not stdout

2012-12-07 Thread Stefan Hajnoczi
From: Peter Crosthwaite Some debug printfs for SD are coming up in stdout. Redirected them to stderr instead. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- hw/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sd.c

Re: [Qemu-devel] [RFC 3/3] docs: document virtio-balloon stats

2012-12-07 Thread Luiz Capitulino
On Fri, 7 Dec 2012 05:30:17 + Dietmar Maurer wrote: > > +The memory statistics are: > > + > > + o stat-swap-in > > + o stat-swap-out > > + o stat-major-faults > > + o stat-minor-faults > > + o stat-free-memory > > + o stat-total-memory > > I want to implement an automatic ballooning policy,

[Qemu-devel] Auto start script

2012-12-07 Thread Ignacio Geli
Hi all...     Sorry if im not posting in the proper list, but i have a solaris 2.5.1 up and running under qemu virtualization, the thing is that every time i boot it i need to enter "boot disk0" on the console to get it up and if I close that console i goes down.

Re: [Qemu-devel] [PATCH 1/8] Update linux headers.

2012-12-07 Thread Peter Maydell
On 7 December 2012 12:50, Cornelia Huck wrote: > Signed-off-by: Cornelia Huck I think it would be good if commit messages for linux-headers updates stated the kernel tree and commit that the updated headers come from. -- PMM

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

2012-12-07 Thread Alex Horn
> [T]he change is entirely correct since the 'else' clause currently seems > to take the increment into account: > if (s->len <= 2) > s->buf[s->len - 1] = data; > tmp105_write(s); > > Shouldn't the '- 1' in the middle line be removed? Several clarifications follow. Th

[Qemu-devel] [PATCH 5/8] s390: Virtual channel subsystem support.

2012-12-07 Thread Cornelia Huck
Provide a mechanism for qemu to provide fully virtual subchannels to the guest. Signed-off-by: Cornelia Huck --- hw/s390x/Makefile.objs |1 + hw/s390x/css.c | 1195 hw/s390x/css.h | 92 target-s390x/cpu.h | 65 +++

[Qemu-devel] [RFC PATCH v6 0/6] Virtio refactoring.

2012-12-07 Thread fred . konrad
From: KONRAD Frederic You can clone that from here : git.greensocs.com/home/greensocs/git/qemu_virtio.git virtio_refactoring_v6 The problem with the last RFC v5 was that virtio-blk refactoring broke virtio-blk-pci device ( SEGFAULT ). So I modify this last step to fix that issue. In order to no

[Qemu-devel] [RFC PATCH v6 3/6] virtio-pci-bus : Introduce virtio-pci-bus.

2012-12-07 Thread fred . konrad
From: KONRAD Frederic Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci transport device. Signed-off-by: KONRAD Frederic --- hw/virtio-pci.c | 37 + hw/virtio-pci.h | 19 +-- 2 files changed, 54 insertions(+), 2 d

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

2012-12-07 Thread Luiz Capitulino
On Fri, 07 Dec 2012 17:39:32 +0900 Tomoki Sekiyama wrote: > 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 >

[Qemu-devel] [PATCH 0/3] s390: ipl device and cpu reset handler

2012-12-07 Thread Jens Freimann
Hi Alex, some s390 patches dealing with ipl device, CPU reset and a bugfix: Patch 1 fixes a bug that overwrites the standard kernel command line Patch 2 is an initial patch towards the previously discussed ipl device. More patches will follow soon. Patch 3 adds a cpu reset handler. With

[Qemu-devel] [RFC PATCH v6 2/6] virtio-bus : Introduce virtio-bus

2012-12-07 Thread fred . konrad
From: KONRAD Frederic Introduce virtio-bus. Refactored transport device will create a bus which extends virtio-bus. Signed-off-by: KONRAD Frederic --- hw/Makefile.objs | 1 + hw/virtio-bus.c | 111 +++ hw/virtio-bus.h | 82 ++

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

2012-12-07 Thread Luiz Capitulino
On Fri, 07 Dec 2012 17:39:29 +0900 Tomoki Sekiyama wrote: > 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 dirt

Re: [Qemu-devel] [PATCH 2/7] target-alpha: Turn CPU definitions into subclasses

2012-12-07 Thread Richard Henderson
On 2012-12-06 04:11, Andreas Färber wrote: >> The "2*" names are aliases of the "ev*" names. There's no need for so >> much duplication. And for that matter, "ev68" is no different from "ev67" >> at the level for which we emulate. In hw, it was more cache and a faster >> multiply implementation.

[Qemu-devel] [PATCH 7/8] s390-virtio: Factor out some initialization code.

2012-12-07 Thread Cornelia Huck
Some of the machine initialization for s390-virtio will be reused by virtio-ccw. Signed-off-by: Cornelia Huck --- hw/s390-virtio.c | 132 +-- 1 file changed, 79 insertions(+), 53 deletions(-) diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c in

[Qemu-devel] [RFC PATCH v6 1/6] qdev : add a maximum device allowed field for the bus.

2012-12-07 Thread fred . konrad
From: KONRAD Frederic Add a max_dev field to BusState to specify the maximum amount of devices allowed on the bus ( have no effect if max_dev=0 ) Signed-off-by: KONRAD Frederic --- hw/qdev-core.h| 2 ++ hw/qdev-monitor.c | 11 +++ 2 files changed, 13 insertions(+) diff --git a/hw

Re: [Qemu-devel] [PATCH v5 04/11] dataplane: add virtqueue vring code

2012-12-07 Thread Kevin Wolf
Am 05.12.2012 21:47, schrieb Stefan Hajnoczi: > The virtio-blk-data-plane cannot access memory using the usual QEMU > functions since it executes outside the global mutex and the memory APIs > are this time are not thread-safe. > > This patch introduces a virtqueue module based on the kernel's vho

Re: [Qemu-devel] [PATCH 1/8] Update linux headers.

2012-12-07 Thread Cornelia Huck
On Fri, 7 Dec 2012 13:01:27 + Peter Maydell wrote: > On 7 December 2012 12:50, Cornelia Huck wrote: > > Signed-off-by: Cornelia Huck > > I think it would be good if commit messages for linux-headers > updates stated the kernel tree and commit that the updated headers > come from. This one

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

2012-12-07 Thread fred . konrad
From: KONRAD Frederic Create virtio-blk which extends virtio-device, so it can be connected on virtio-bus. I suggest one step to refactor virtio-blk-pci, and one more to clean virtio-blk. Signed-off-by: KONRAD Frederic --- hw/virtio-blk.c | 101 +

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

2012-12-07 Thread Cornelia Huck
Add a new virtio transport that uses channel commands to perform virtio operations. Add a new machine type s390-ccw that uses this virtio-ccw transport and make it the default machine for s390. Signed-off-by: Cornelia Huck --- hw/s390-virtio.c | 149 ++-- hw/s390x/Makefile.objs | 1

Re: [Qemu-devel] [PATCH v5 06/11] dataplane: add Linux AIO request queue

2012-12-07 Thread Kevin Wolf
Am 05.12.2012 21:47, schrieb Stefan Hajnoczi: > The IOQueue has a pool of iocb structs and a function to add new > read/write requests. Multiple requests can be added before calling the > submit function to actually tell the host kernel to begin I/O. This > allows callers to batch requests and su

[Qemu-devel] [RFC PATCH v6 5/6] virtio-device : Refactor virtio-device.

2012-12-07 Thread fred . konrad
From: KONRAD Frederic Create the virtio-device which is abstract. All the virtio-device can extend this class. Signed-off-by: KONRAD Frederic --- hw/virtio.c | 50 +++--- hw/virtio.h | 28 2 files changed, 67 insertions(+

[Qemu-devel] [PATCH 3/8] s390: I/O interrupt and machine check injection.

2012-12-07 Thread Cornelia Huck
I/O interrupts are queued per isc. Only crw pending machine checks are supported. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h| 67 +++ target-s390x/helper.c | 145 ++ 2 files changed, 212 insertions(+) diff --git a

[Qemu-devel] [PATCH 3/3] s390: add cpu reset handler

2012-12-07 Thread Jens Freimann
Add a CPU reset handler to have all CPUs in a PoP compliant state. Signed-off-by: Jens Freimann --- target-s390x/cpu.c | 25 + target-s390x/kvm.c | 10 +- 2 files changed, 34 insertions(+), 1 deletions(-) diff --git a/target-s390x/cpu.c b/target-s390x/cpu.c i

[Qemu-devel] [PATCH 1/8] Update linux headers.

2012-12-07 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- linux-headers/asm-generic/kvm_para.h | 4 +++ linux-headers/asm-powerpc/kvm.h | 59 linux-headers/asm-powerpc/kvm_para.h | 7 +++-- linux-headers/linux/kvm.h| 36 +++--- 4 files changed, 98 in

Re: [Qemu-devel] [PATCH v2] target-arm: GIC: bug fixes for arm_gic.c

2012-12-07 Thread Daniel Sangorrin
Peter, Thanks for your kind explanation. I will fix the patch and send it again next Monday (hopefully I won't make any mistake this time). And yes, I would like to collaborate with more patches in the future so it might be good practice. In particular, I'm interested in helping to make current T

[Qemu-devel] [PATCH 1/3] s390: Fix empty kernel command line

2012-12-07 Thread Jens Freimann
From: Christian Borntraeger Since commit 967c0da73a7b0da186baba6632301d83644a570c vl.c: Avoid segfault when started with no arguments the user can specify a kernel without a command line. Lets not overwrite the default command line with \0 in that case. Signed-off-by: Christian Borntraeger

[Qemu-devel] [PATCH 2/8] s390: Channel I/O basic defintions.

2012-12-07 Thread Cornelia Huck
Basic channel I/O structures and helper function. Signed-off-by: Cornelia Huck --- target-s390x/Makefile.objs | 2 +- target-s390x/ioinst.c | 46 ++ target-s390x/ioinst.h | 207 + 3 files changed, 254 insertions(+), 1 deletion(-)

[Qemu-devel] [PATCH 6/8] s390: Wire up channel I/O in kvm.

2012-12-07 Thread Cornelia Huck
Trigger the code for our virtual css in case of instruction intercepts for I/O instructions. Handle the tsch exit for the subchannel-related part of tsch. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h | 11 +++ target-s390x/kvm.c | 246 ++--

[Qemu-devel] [RFC PATCH v6 4/6] virtio-pci : Refactor virtio-pci device.

2012-12-07 Thread fred . konrad
From: KONRAD Frederic Create the virtio-pci device. This transport device will create a virtio-pci-bus, so one VirtIODevice can be connected. Signed-off-by: KONRAD Frederic --- hw/virtio-pci.c | 112 hw/virtio-pci.h | 14 +++ 2 file

Re: [Qemu-devel] [PATCH v2] target-arm: GIC: bug fixes for arm_gic.c

2012-12-07 Thread Peter Maydell
On 7 December 2012 14:31, Daniel Sangorrin wrote: > Thanks for your kind explanation. I will fix the patch and send it > again next Monday (hopefully I won't make any mistake this time). And > yes, I would like to collaborate with more patches in the future so it > might be good practice. OK, coo

[Qemu-devel] [RFC PATCH v4 0/8] s390: channel I/O support in qemu.

2012-12-07 Thread Cornelia Huck
Hi, just a quick dump of my qemu patch series for channel I/O. I've managed to chop the virtual css patch into some smaller chunks (patches 2-6), which are hopefully easier to review. The virtio-ccw patch is still based upon the current virtio infrastructure; I'll try to rebase it upon the virti

[Qemu-devel] [PATCH 4/8] s390: Add channel I/O instructions.

2012-12-07 Thread Cornelia Huck
Provide handlers for (most) channel I/O instructions. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h| 87 +++ target-s390x/ioinst.c | 694 +- target-s390x/ioinst.h | 16 ++ trace-events | 6 + 4 files changed, 796 insertio

[Qemu-devel] [PATCH 2/3] s390: Move IPL code into a separate device

2012-12-07 Thread Jens Freimann
From: Christian Borntraeger Lets move the code to setup IPL for external kernel or via the zipl rom into a separate file. This allows to - define a reboot handler, setting up the PSW appropriately - enhance the boot code to IPL disks that contain a bootmap that was created with zipl under LPAR

Re: [Qemu-devel] [PATCH v5 04/11] dataplane: add virtqueue vring code

2012-12-07 Thread Stefan Hajnoczi
On Fri, Dec 7, 2012 at 3:07 PM, Kevin Wolf wrote: > Am 05.12.2012 21:47, schrieb Stefan Hajnoczi: >> The virtio-blk-data-plane cannot access memory using the usual QEMU >> functions since it executes outside the global mutex and the memory APIs >> are this time are not thread-safe. >> >> This patc

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

2012-12-07 Thread Peter Maydell
On 7 December 2012 13:32, wrote: > From: KONRAD Frederic > > Create virtio-blk which extends virtio-device, so it can be connected on > virtio-bus. I suggest one step to refactor virtio-blk-pci, and one more to > clean > virtio-blk. Yes; I think you need to take this patchseries another step f

Re: [Qemu-devel] [PATCH] linux-user: Merge pread/pwrite into pread64/pwrite64

2012-12-07 Thread Peter Maydell
Ping^2, now we're out of freeze? Patchwork URL: http://patchwork.ozlabs.org/patch/191133/ -- PMM On 24 October 2012 13:27, Peter Maydell wrote: > Ping? > > -- PMM > > On 12 October 2012 14:55, Peter Maydell wrote: >> The Linux syscalls underlying pread() and pwrite() take a 64 bit >> offset on

[Qemu-devel] [PATCH 0/3 v4] vnc: added initial websocket protocol support

2012-12-07 Thread Tim Hardeck
This patch set adds basic Websocket Protocol version 13 - RFC 6455 - support to QEMU VNC. Binary encoding support on the client side is mandatory. Because of the GnuTLS requirement the Websockets implementation is optional (--enable-vnc-ws). To activate Websocket support the VNC option "websocket

[Qemu-devel] [PATCH 1/3] vnc: added buffer_advance function

2012-12-07 Thread Tim Hardeck
Following Anthony Liguori's Websocket implementation I have added the buffer_advance function to VNC and replaced all related buffer memmove operations with it. Signed-off-by: Tim Hardeck --- ui/vnc.c | 13 + ui/vnc.h |1 + 2 files changed, 10 insertions(+), 4 deletions(-) dif

[Qemu-devel] [PATCH 2/3 v4] vnc: added initial websocket protocol support

2012-12-07 Thread Tim Hardeck
This patch adds basic Websocket Protocol version 13 - RFC 6455 - support to QEMU VNC. Binary encoding support on the client side is mandatory. Because of the GnuTLS requirement the Websockets implementation is optional (--enable-vnc-ws). To activate Websocket support the VNC option "websocket"is

[Qemu-devel] [PATCH 3/3] vnc: fix possible uninitialized removals

2012-12-07 Thread Tim Hardeck
Some VncState values are not initialized before the Websocket handshake. If it fails QEMU segfaults during the cleanup. To prevent this behavior intialization checks are added. Signed-off-by: Tim Hardeck --- ui/vnc.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --gi

Re: [Qemu-devel] [RFC 3/3] docs: document virtio-balloon stats

2012-12-07 Thread Dietmar Maurer
> > Is it possible to extent those statistic to include buffer/cache values? > > Yes, should be possible but the kernel virtio-balloon driver has to be > extended too (and I suspect this kind of change goes into the kernel first). The current statistics are quite useless without that information,

[Qemu-devel] [RFC/PATCH 2/2] s390: enable ipl device for virtio-ccw

2012-12-07 Thread Christian Borntraeger
In case of virtio-ccw we also want to get a disk by its device id. Signed-off-by: Christian Borntraeger --- hw/s390x/ipl-disk.c |5 + 1 file changed, 5 insertions(+) diff --git a/hw/s390x/ipl-disk.c b/hw/s390x/ipl-disk.c index 1aab32b..6a83d9c 100644 --- a/hw/s390x/ipl-disk.c +++ b/hw/s

[Qemu-devel] [RFC/PATCH 1/2] s390: Add bootmap parsing to ipl device

2012-12-07 Thread Christian Borntraeger
The zipl bios code only works for specially prepared disks. This adds parsing of the on disk bootmap of disks that are zipled with a zipl under LPAR/zVM. Since all bootmaps are pretty similar the code is written in a way to not only fcp bootmaps (which are architectured and also parsed by the firm

[Qemu-devel] [RFC/PATCH 0/2] ipl device followup

2012-12-07 Thread Christian Borntraeger
Alex, here is were the IPL device code would move into. Some rough edges are still there, but it can ipl almost anything that was zipled under LPAR/VM. Christian Borntraeger (2): s390: Add bootmap parsing to ipl device s390: enable ipl device for virtio-ccw hw/s390x/Makefile.objs |2 +-

[Qemu-devel] [Bug 1087590] [NEW] gdbstub step instruction locks up on OS X

2012-12-07 Thread Niel van der Westhuizen
Public bug reported: OS X 10.8.2 (Darwin Niels-MacBook-Air.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64) -Only seems to occur with a drive attached -To reproduce (from current git master): ./configure --cc=clang --enable-d

[Qemu-devel] [PATCH v2] configure: Default to 'cc', not 'gcc'

2012-12-07 Thread Peter Maydell
Default to 'cc' as our compiler, rather than 'gcc'. We used to have to insist on gcc when we still kept the CPU env in a fixed global register, but this is no longer necessary and we will now compile OK on clang as well as gcc. Using 'cc' should generally result in us using the most standard and m

[Qemu-devel] [Bug 1087590] Re: gdbstub step instruction locks up on OS X

2012-12-07 Thread Peter Maydell
With current git master, does the bug still occur if you add '--with- coroutine=sigaltstack' to your configure line? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1087590 Title: gdbstub step instru

Re: [Qemu-devel] [PATCH v2] target-arm: GIC: bug fixes for arm_gic.c

2012-12-07 Thread Johannes Winter
On 07.12.2012 15:38, Peter Maydell wrote: [...] On 7 December 2012 14:31, Daniel Sangorrin wrote: > [...] In particular, I'm interested in helping to make current TrustZone support by Johannes Winter (https://github.com/jowinter/qemu-trustzone) mainstream. I can contribute by testing it or add

[Qemu-devel] [PATCH 1/4] multiboot: use FWCfgState* as argument instead of void*

2012-12-07 Thread Eduardo Habkost
There's no point in using void* if we can simply use the right type for the argument (FWCfgState*). Signed-off-by: Eduardo Habkost --- Cc: Anthony Liguori --- hw/multiboot.c | 2 +- hw/multiboot.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/multiboot.c b/hw/multi

Re: [Qemu-devel] [Xen-devel] [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move

2012-12-07 Thread Ian Jackson
Stefano Stabellini writes ("[Xen-devel] [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move"): > after reviewing the patch "fix multiply issue for int and uint types" > with Ian Jackson, we realized that cpu_ioreq_pio and cpu_ioreq_move are > in much need for a simplification as well a

[Qemu-devel] [PATCH 0/4] use FWCfgState* instead of void* for fw_cfg data

2012-12-07 Thread Eduardo Habkost
Many parts of the code use void* for fw_cfg data when it could simply use the right data type (FWCfgState*). This series changes that code to use FWCfgState*. Eduardo Habkost (4): multiboot: use FWCfgState* as argument instead of void* pc: use FWCfgState* instead of void* for fw_cfg data ppc

Re: [Qemu-devel] [Xen-devel] [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move

2012-12-07 Thread Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move"): > On Fri, 2012-12-07 at 16:14 +, Ian Jackson wrote: > > +target_phys_addr_t offset = (target_phys_addr_t)req->size * i; > > +if (req->df) addr -= offset; > > +else addr -=

Re: [Qemu-devel] [Xen-devel] [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move

2012-12-07 Thread Ian Campbell
On Fri, 2012-12-07 at 16:14 +, Ian Jackson wrote: > +target_phys_addr_t offset = (target_phys_addr_t)req->size * i; > +if (req->df) addr -= offset; > +else addr -= offset; One of these -= should be a += I presume? [...] > +write_phys_req_item((target_phys_addr_t) r

[Qemu-devel] [PATCH 4/4] sparc: use FWCfgState* instead of void* for fw_cfg data

2012-12-07 Thread Eduardo Habkost
There's no point in using void* if all functions dealing with that data use FWCfgState*. Signed-off-by: Eduardo Habkost --- Cc: Blue Swirl --- hw/sun4m.c | 6 +++--- hw/sun4u.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/sun4m.c b/hw/sun4m.c index 1a78676..efcd5dd

[Qemu-devel] [PATCH 2/4] pc: use FWCfgState* instead of void* for fw_cfg data

2012-12-07 Thread Eduardo Habkost
There's no point in using void* if all functions dealing with that data use FWCfgState*. Signed-off-by: Eduardo Habkost --- Cc: Anthony Liguori --- hw/acpi_piix4.c | 2 +- hw/pc.c | 28 ++-- hw/pc.h | 19 ++- hw/pc_piix.c| 2 +- 4 fi

[Qemu-devel] [PATCH 3/4] ppc: use FWCfgState* instead of void* for fw_cfg data

2012-12-07 Thread Eduardo Habkost
There's no point in using void* if all functions dealing with that data use FWCfgState*. Signed-off-by: Eduardo Habkost --- Cc: Alexander Graf --- hw/ppc_newworld.c | 2 +- hw/ppc_oldworld.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc_newworld.c b/hw/ppc_newwor

[Qemu-devel] [PATCH 6/8] qcow2: Enable dirty flag in qcow2_alloc_cluster_link_l2

2012-12-07 Thread Kevin Wolf
This is closer to where the dirty flag is really needed, and it avoids having checks for special cases related to cluster allocation directly in the writev loop. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |5 - block/qcow2.c |7 +-- block/qcow2.h |2 +

[Qemu-devel] [PATCH 4/8] qcow2: Drop l2meta.cluster_offset

2012-12-07 Thread Kevin Wolf
There's no real reason to have an l2meta for normal requests that don't allocate anything. Before we can get rid of it, we must return the host cluster offset in a different way. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 10 ++ block/qcow2.c | 14 +++--- b

  1   2   >