[Qemu-devel] [PATCH] HLFS driver for QEMU

2013-03-17 Thread harryxiyou
From: Harry Wei HLFS is HDFS-based(Hadoop Distributed File System) Log-Structured File System. Actually, HLFS, currently, is not a FS but a block-storage system, which we simplify LFS to fit block-level storage. So you could also call HLFS as HLBS (HDFS-based Log-Structured Block-storage System).

Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image

2013-03-17 Thread Wenchao Xia
于 2013-3-15 22:51, Stefan Hajnoczi 写道: > On Fri, Mar 15, 2013 at 03:24:38PM +0800, Wenchao Xia wrote: >>I'd like to add a new way to save vmstate, which will based on the >> migration thread, but will write contents to block images, instead >> of fd as stream. Following is the method to add API

[Qemu-devel] [PATCH] HLFS driver for QEMU

2013-03-17 Thread harryxiyou
From: Harry Wei HLFS is HDFS-based(Hadoop Distributed File System) Log-Structured File System. Actually, HLFS, currently, is not a FS but a block-storage system, which we simplify LFS to fit block-level storage. So you could also call HLFS as HLBS (HDFS-based Log-Structured Block-storage System).

[Qemu-devel] [PATCH] sheepdog: show error message for halt status

2013-03-17 Thread Liu Yuan
From: Liu Yuan Sheepdog (neither quorum nor unsafe mode) will refuse to serve IO requests when number of alive nodes is less than that of copies specified by users. This will return 0x19 to QEMU client which currently doesn't recognize it. This patch adds an error description when QEMU client re

Re: [Qemu-devel] [PATCH][RFC 0/14] implement power chip

2013-03-17 Thread li guang
ping ... 在 2013-03-15五的 08:59 +0800,li guang写道: > Hi, Anthony > > Sorry to bother you, > can you please help to see it this work is > worth to go on, or ... > > or someone else can help to see this patch-set. > > Thanks All. > > > 在 2013-03-13三的 16:01 +0800,liguang写道: > > By now, all devices

[Qemu-devel] [PATCH v3 2/2] bridge helper: support conf dirs

2013-03-17 Thread Doug Goldstein
Allow the bridge helper to take a config directory rather than having to specify every file in the directory manually via an include statement. Signed-off-by: Doug Goldstein Reviewed-by: Stefan Hajnoczi Reviewed-by: Corey Bryant CC: Anthony Liguori CC: Richa Marwaha CC: Corey Bryant TO: qemu

[Qemu-devel] [PATCH v3 1/2] bridge helper: unified error cleanup for parse_acl_file

2013-03-17 Thread Doug Goldstein
Handle errors and cleanup from the error in a unified place for parse_acl_file(). Signed-off-by: Doug Goldstein Reviewed-by: Stefan Hajnoczi Reviewed-by: Corey Bryant CC: Anthony Liguori CC: Richa Marwaha CC: Corey Bryant TO: qemu-devel@nongnu.org --- qemu-bridge-helper.c | 28 +

[Qemu-devel] [PATCH v3 0/2] bridge helper: includedir conf arg

2013-03-17 Thread Doug Goldstein
The goal is to support an 'includedir' to include all files within a directory specified in the bridge.conf file. The rationale is to allow libvirt to be able to configure interfaces to for use by unprivileged users by just simply generating a new configuration file to the directory. Change from v

Re: [Qemu-devel] [Qemu-ppc] [PATCH 5/5] pseries: Move XICS initialization before cpu initialization

2013-03-17 Thread David Gibson
On Mon, Mar 18, 2013 at 04:12:11AM +0100, Alexander Graf wrote: > > On 18.03.2013, at 03:55, David Gibson wrote: > > > On Fri, Mar 15, 2013 at 01:33:18PM +0100, Alexander Graf wrote: > >> > >> On 14.03.2013, at 02:53, David Gibson wrote: > >> > >>> Currently, the pseries machine initializes the

[Qemu-devel] [RFC PATCH RDMA support v4: 06/10] core RDMA migration code (rdma.c)

2013-03-17 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- include/migration/rdma.h | 244 rdma.c | 1532 ++ 2 files changed, 1776 insertions(+) create mode 100644 include/migration/rdma.h create mode 100644 rdma.c di

[Qemu-devel] [RFC PATCH RDMA support v4: 04/10] iterators for getting the RAMBlocks

2013-03-17 Thread mrhines
From: "Michael R. Hines" This introduces: 1. qemu_ram_foreach_block 2. qemu_ram_count_blocks Both used in communicating the RAMBlocks to each side for later memory registration. Signed-off-by: Michael R. Hines --- exec.c| 21 + include/exec/cpu-common

[Qemu-devel] [RFC PATCH RDMA support v4: 03/10] more verbose documentation of the RDMA transport

2013-03-17 Thread mrhines
From: "Michael R. Hines" This tries to cover all the questions I got the last time. Please do tell me what is not clear, and I'll revise again. Signed-off-by: Michael R. Hines --- docs/rdma.txt | 208 + 1 file changed, 208 insertions(+)

[Qemu-devel] [RFC PATCH RDMA support v4: 08/10] introduce QEMUFileRDMA

2013-03-17 Thread mrhines
From: "Michael R. Hines" This compiles with and without --enable-rdma. Signed-off-by: Michael R. Hines --- include/migration/qemu-file.h | 10 +++ savevm.c | 172 ++--- 2 files changed, 172 insertions(+), 10 deletions(-) diff --git a

[Qemu-devel] [RFC PATCH RDMA support v4: 10/10] send pc.ram over RDMA

2013-03-17 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- arch_init.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/arch_init.c b/arch_init.c index 98e2bc6..b013cc8 100644 --- a/arch_init.c +++ b/arch_init.c @@ -45,6 +45,7 @@ #include "e

[Qemu-devel] [RFC PATCH RDMA support v4: 09/10] check for QMP string and bypass nonblock() calls

2013-03-17 Thread mrhines
From: "Michael R. Hines" Since we're not using TCP anymore, we skip these calls. Also print a little extra text while debugging, like "gbps" which is helpful to know how the link is being utilized. Signed-off-by: Michael R. Hines --- include/migration/migration.h |3 +++ migration.c

[Qemu-devel] [RFC PATCH RDMA support v4: 01/10] ./configure --enable-rdma

2013-03-17 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- configure | 25 + 1 file changed, 25 insertions(+) diff --git a/configure b/configure index 46a7594..bdc6b13 100755 --- a/configure +++ b/configure @@ -170,6 +170,7 @@ xfs="" vhost_net="no" kvm="no" +rd

[Qemu-devel] [RFC PATCH RDMA support v4: 07/10] connection-establishment for RDMA

2013-03-17 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- migration-rdma.c | 205 ++ 1 file changed, 205 insertions(+) create mode 100644 migration-rdma.c diff --git a/migration-rdma.c b/migration-rdma.c new file mode 100644 index 0

[Qemu-devel] [RFC PATCH RDMA support v4: 02/10] check for CONFIG_RDMA

2013-03-17 Thread mrhines
From: "Michael R. Hines" Make both rdma.c and migration-rdma.c conditionally built. Signed-off-by: Michael R. Hines --- Makefile.objs |1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.objs b/Makefile.objs index f99841c..d12208b 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -5

[Qemu-devel] [RFC PATCH RDMA support v4: 00/10] cleaner ramblocks and documentation

2013-03-17 Thread mrhines
From: "Michael R. Hines" Changes since v3: - Compile-tested with and without --enable-rdma is working. - Updated docs/rdma.txt (included below) - Merged with latest pull queue from Paolo - Implemented qemu_ram_foreach_block() mrhines@mrhinesdev:~/qemu$ git diff --stat master Makefile.objs

[Qemu-devel] [RFC PATCH RDMA support v4: 05/10] reuse function for parsing the QMP 'migrate' string

2013-03-17 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- include/qemu/sockets.h |1 + util/qemu-sockets.c|2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h index ae5c21c..5066fca 100644 --- a/include/qemu/sockets

Re: [Qemu-devel] [Qemu-ppc] [PATCH 5/5] pseries: Move XICS initialization before cpu initialization

2013-03-17 Thread Alexander Graf
On 18.03.2013, at 03:55, David Gibson wrote: > On Fri, Mar 15, 2013 at 01:33:18PM +0100, Alexander Graf wrote: >> >> On 14.03.2013, at 02:53, David Gibson wrote: >> >>> Currently, the pseries machine initializes the cpus, then the XICS >>> interrupt controller. However, to support the upcoming

Re: [Qemu-devel] [Qemu-ppc] [PATCH 5/5] pseries: Move XICS initialization before cpu initialization

2013-03-17 Thread David Gibson
On Fri, Mar 15, 2013 at 01:33:18PM +0100, Alexander Graf wrote: > > On 14.03.2013, at 02:53, David Gibson wrote: > > > Currently, the pseries machine initializes the cpus, then the XICS > > interrupt controller. However, to support the upcoming in-kernel XICS > > implementation we will need to i

Re: [Qemu-devel] [PATCH v8 05/24] hw/arm: add FTDDRII030 DDRII controller support

2013-03-17 Thread Peter Crosthwaite
On Mon, Mar 18, 2013 at 11:12 AM, Kuo-Jung Su wrote: > 2013/3/16 Peter Crosthwaite : >> Hi Kuo-Jung, >> >> On Fri, Mar 15, 2013 at 11:13 PM, Kuo-Jung Su wrote: >>> From: Kuo-Jung Su >>> >>> The FTDDRII030 is a DDRII SDRAM controller which is responsible for >>> SDRAM initialization. >>> In QEMU

Re: [Qemu-devel] [PATCH v8 13/24] hw/arm: add FTI2C010 I2C controller support

2013-03-17 Thread Kuo-Jung Su
2013/3/16 Peter Crosthwaite : > On Fri, Mar 15, 2013 at 11:15 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The FTI2C010 is a simple I2C master controller. >> >> Signed-off-by: Kuo-Jung Su >> --- >> hw/arm/Makefile.objs |1 + >> hw/arm/faraday_a369_soc.c |6 ++ >> hw/arm/fti2c0

Re: [Qemu-devel] [PATCH v8 05/24] hw/arm: add FTDDRII030 DDRII controller support

2013-03-17 Thread Kuo-Jung Su
2013/3/16 Peter Crosthwaite : > Hi Kuo-Jung, > > On Fri, Mar 15, 2013 at 11:13 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The FTDDRII030 is a DDRII SDRAM controller which is responsible for >> SDRAM initialization. >> In QEMU we emulate only the SDRAM enable function. >> >> Signed-off-by:

Re: [Qemu-devel] [PATCH v8 00/24] hw/arm: add Faraday A369 SoC platform support

2013-03-17 Thread Kuo-Jung Su
2013/3/15 Peter Maydell : > On 15 March 2013 13:15, Kuo-Jung Su wrote: >> default-configs/arm-softmmu.mak |1 + >> hw/Makefile.objs|2 + >> hw/arm/Makefile.objs| 21 ++ >> hw/arm/faraday.h| 61 >> hw/arm/faraday_a369.c | 174

Re: [Qemu-devel] TCG broken in system mode (was TCG assertion with qemu-system-mipsel)

2013-03-17 Thread Aurélien Jarno
On Wed, Mar 06, 2013 at 07:10:17AM +0100, Aurélien Jarno wrote: > On Wed, Mar 06, 2013 at 11:05:15AM +0900, Yeongkyoon Lee wrote: > > On 03/05/2013 11:18 PM, Aurélien Jarno wrote: > > >On Mon, Mar 04, 2013 at 05:37:31PM +0100, Aurélien Jarno wrote: > > >>Hi, > > >> > > >>On Sat, Feb 23, 2013 at 11:

[Qemu-devel] SSD Trim Support- Current State?

2013-03-17 Thread d hee
What is the current state of SSD Trim/Discard support  for a Qemu/KVM guests?  I run a Qemi/ KVM host wtih these kvm guests...they are all Linux os's and use raw images: 1) 20 gig Linux web-server 2) Subsonic music streaming server for my Android phone 3) Postfix server for automated emails 4) L

Re: [Qemu-devel] [PATCH] s390: Fix cpu refactoring fallout.

2013-03-17 Thread Blue Swirl
Thanks, applied. On Fri, Mar 15, 2013 at 9:57 AM, Cornelia Huck wrote: > Commit 259186a7 "cpu: Move halted and interrupt_request fields to CPUState" > seems to have missed one instance in target-s390x/kvm.c: > > /home/cohuck/git/qemu/target-s390x/kvm.c: In function > ‘kvm_arch_process_async_even

Re: [Qemu-devel] [PULL 00/17] arm-devs queue

2013-03-17 Thread Blue Swirl
Thanks, pulled. On Fri, Mar 15, 2013 at 4:56 PM, Peter Maydell wrote: > Another arm-devs pullreq: xilinx fixes from Peter C, the pl330 > model, and my vexpress fixes for the system control regs. > Please pull. > > thanks > -- PMM > > > The following changes since commit dc0b0616f726956001be09e9a6

Re: [Qemu-devel] [PATCH v10 0/4] Moxie CPU port

2013-03-17 Thread Blue Swirl
On Sun, Mar 10, 2013 at 2:07 PM, Anthony Green wrote: > This version of the patch includes a bug fix and some formatting fixes > identified by Blue Swirl here: > > http://lists.gnu.org/archive/html/qemu-devel/2013-03/msg01530.html > > Please consider applying this version of the patch series. The

[Qemu-devel] [PATCH] Advertise --libdir in configure --help output

2013-03-17 Thread Doug Goldstein
The configure script allows you to supply a libdir via --libdir but was not advertising this in --help. Signed-off-by: Doug Goldstein CC: qemu-triv...@nongnu.org --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 46a7594..497ce29 100755 --- a/configure

[Qemu-devel] [Bug 1155403] Re: virtio cdrom detected as hard disk

2013-03-17 Thread Phillip Susi
It seems the installer does not consider virtio devices when doing its search. It also seems the installer does not have the virtio-scsi module, and it seems a bit wasteful to go through a layer of scsi emulation. Shouldn't qemu at least warn you that the media=argument does nothing on virtio dev

Re: [Qemu-devel] [PATCH 0/4] Fix JSON string formatter

2013-03-17 Thread Blue Swirl
On Thu, Mar 14, 2013 at 5:49 PM, Markus Armbruster wrote: > This should unbreak "make check" on machines where char is unsigned. > Blue, please give it a whirl. With the patches applied there are no errors, thanks. Tested-by: Blue Swirl Though test-coroutine seems to hang, maybe fallout from re

[Qemu-devel] [Bug 1156313] [NEW] X86-64 flags handling broken

2013-03-17 Thread Torbjorn Granlund
Public bug reported: The current qemu sources cause improper handling of flags on x86-64. This bug seems to have shown up a few weeks ago. A plain install of Debian GNU/Linux makes user processes catch spurious signals. The kernel seems to run stably, though. The ADX feature works very poorly.

Re: [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD

2013-03-17 Thread Aurelien Jarno
On Sun, Mar 17, 2013 at 06:54:47PM +, Peter Maydell wrote: > On 17 March 2013 18:51, Paolo Bonzini wrote: > > Il 17/03/2013 01:04, Aurelien Jarno ha scritto: > >> | boot | install build-dep | build lm-sensors | > >> +--+--

Re: [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD

2013-03-17 Thread Aurelien Jarno
On Sun, Mar 17, 2013 at 07:51:00PM +0100, Paolo Bonzini wrote: > Il 17/03/2013 01:04, Aurelien Jarno ha scritto: > > | boot | install build-dep | build lm-sensors | > > +--+---+--+ > > versatile

Re: [Qemu-devel] [PATCH] pvevent: pvevent device driver

2013-03-17 Thread Blue Swirl
On Thu, Mar 14, 2013 at 8:51 AM, Hu Tao wrote: > pvevent device is a qemu simulated device through which guest panic > event is sent to host. > > ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html > > Signed-off-by: Hu Tao > --- > drivers/platform/x86/Kconfig | 7 +++

Re: [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD

2013-03-17 Thread Peter Maydell
On 17 March 2013 18:51, Paolo Bonzini wrote: > Il 17/03/2013 01:04, Aurelien Jarno ha scritto: >> | boot | install build-dep | build lm-sensors | >> +--+---+--+ >> versatile | 1:09 |

Re: [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD

2013-03-17 Thread Paolo Bonzini
Il 17/03/2013 01:04, Aurelien Jarno ha scritto: > | boot | install build-dep | build lm-sensors | > +--+---+--+ > versatile | 1:09 | 2:27 | 4:09 | > versatile cache=wb

Re: [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD

2013-03-17 Thread Paolo Bonzini
Il 15/03/2013 16:35, Peter Maydell ha scritto: > On 5 March 2013 00:44, Aurelien Jarno wrote: >> On Tue, Mar 05, 2013 at 08:22:57AM +0800, Peter Maydell wrote: >>> What effect does this actually have on the user experience? >> >> The effect is that the user don't has to specify the interface type.

Re: [Qemu-devel] [PATCH 7/7] pcie: Mangle types to match topology

2013-03-17 Thread Michael S. Tsirkin
On Thu, Mar 14, 2013 at 04:01:35PM -0600, Alex Williamson wrote: > Windows will fail to start drivers for devices with an Endpoint type > PCIe capability attached to a Root Complex (code 10 - Device cannot > start). The proper type for such a device is Root Complex Integrated > Endpoint. Devices

Re: [Qemu-devel] [PATCH 0/7] pci: Create PCI Express bus type

2013-03-17 Thread Michael S. Tsirkin
On Thu, Mar 14, 2013 at 04:00:53PM -0600, Alex Williamson wrote: > When setting PCIe capabilities we need to know the type of bus we > have. On secondary buses we could poke around on the parent bridge > device to infer this data, but on root buses there's no parent device. > By creating a new PCI

Re: [Qemu-devel] [PATCH 0/2] Fix booting tcm_vhost + seabios

2013-03-17 Thread Kevin O'Connor
On Fri, Mar 15, 2013 at 09:45:14AM +0800, Asias He wrote: > Asias He (2): > virtio-scsi: Set _DRIVER_OK flag before scsi target scanning > virtio-scsi: Pack struct virtio_scsi_{req_cmd,resp_cmd} Thanks. I pushed these patches. -Kevin

Re: [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD

2013-03-17 Thread Peter Maydell
On 17 March 2013 10:17, Aurelien Jarno wrote: > On Sun, Mar 17, 2013 at 12:23:31AM +, Peter Maydell wrote: >> On 17 March 2013 00:04, Aurelien Jarno wrote: >> > On Fri, Mar 15, 2013 at 03:45:11PM +, Peter Maydell wrote: >> >> I agree we shouldn't be claiming to have a scsi interface, yes.

[Qemu-devel] [PATCH] vmxcap: Update according to SDM of January 2013

2013-03-17 Thread Jan Kiszka
From: Jan Kiszka This adds reporting of VMCS shadowing, #VE, IA32_SMBASE, unrestricted VMWRITE and fixes the range of the MSEG revision ID. Signed-off-by: Jan Kiszka --- scripts/kvm/vmxcap |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/scripts/kvm/vmxcap b/script

Re: [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD

2013-03-17 Thread Aurelien Jarno
On Sun, Mar 17, 2013 at 12:23:31AM +, Peter Maydell wrote: > On 17 March 2013 00:04, Aurelien Jarno wrote: > > On Fri, Mar 15, 2013 at 03:45:11PM +, Peter Maydell wrote: > >> On 15 March 2013 15:42, Aurelien Jarno wrote: > >> > On Fri, Mar 15, 2013 at 03:35:48PM +, Peter Maydell wrote

Re: [Qemu-devel] [PATCH] target-mips: fix rndrashift_short_acc and code for EXTR_ instructions

2013-03-17 Thread Aurelien Jarno
On Fri, Mar 15, 2013 at 06:56:19PM +0100, Petar Jovanovic wrote: > From: Petar Jovanovic > > Fix for rndrashift_short_acc to set correct value to higher 64 bits. > This change also corrects conditions when bit 23 of the DSPControl register > is set. > > The existing test files have been extended

Re: [Qemu-devel] [PATCH 2/2] virtio-scsi: Pack struct virtio_scsi_{req_cmd, resp_cmd}

2013-03-17 Thread Michael S. Tsirkin
On Fri, Mar 15, 2013 at 09:45:16AM +0800, Asias He wrote: > Device needs the exact size of these data structure. Prevent padding. > > This fixes guest hang when booting seabios + tcm_vhost. > > Signed-off-by: Asias He Acked-by: Michael S. Tsirkin > --- > src/virtio-scsi.h | 4 ++-- > 1 file

Re: [Qemu-devel] [PATCH 1/2] virtio-scsi: Set _DRIVER_OK flag before scsi target scanning

2013-03-17 Thread Michael S. Tsirkin
On Fri, Mar 15, 2013 at 09:45:15AM +0800, Asias He wrote: > Before we start scsi target scanning, we need to set the > VIRTIO_CONFIG_S_DRIVER_OK flag so the device can do setup properly. > > This fix a bug when booting tcm_vhost with seabios. > > Signed-off-by: Asias He > Acked-by: Paolo Bonzini

Re: [Qemu-devel] slow virtio network with vhost=on and multiple cores

2013-03-17 Thread Michael S. Tsirkin
On Fri, Mar 15, 2013 at 08:23:44AM +0100, Peter Lieven wrote: > On 15.03.2013 00:04, Davide Guerri wrote: > >Yes this is definitely an option :) > > > >Just for curiosity, what is the effect of "in-kernel irqchip"? > > it emulates the irqchip in-kernel (in the KVM kernel module) which > avoids use