Re: [Qemu-devel] [PATCH v3] PIIX3: reset the VM when the Reset Control Register's RCPU bit gets set

2013-01-24 Thread Stefan Hajnoczi
On Thu, Jan 24, 2013 at 10:31 AM, Laszlo Ersek wrote: > From : > > Traditional PCI config space access is achieved by writing a 32 bit > value to io port 0xcf8 to identify the bus, device, function and config > register. Port 0xcfc then contains the reg

Re: [Qemu-devel] [RFC] Virtio-desktop: Virtio-based virtual desktop

2013-01-24 Thread Stefan Hajnoczi
On Thu, Jan 24, 2013 at 2:08 PM, Anup Patel wrote: > On 24 January 2013 14:55, Stefan Hajnoczi wrote: >> >> On Thu, Jan 24, 2013 at 11:40:24AM +0530, Anup Patel wrote: >> > IMHO, If we have something like Virtio-desktop specification then all >> > possible guest OSes can have support for it and d

Re: [Qemu-devel] [RFC] qemu snapshot enchancement

2013-01-24 Thread Wenchao Xia
于 2013-1-25 15:20, Dietmar Maurer 写道: My understanding is internal snapshots is obvious fast in both deleting and reading, and I have similar questions, Dietmar, could u tip more how you use this case while 2 snapshot layer exist? To be honest, I don't really understand what you talk abou

[Qemu-devel] [PATCH v2] hw/wm8731: add WM8731 codec support

2013-01-24 Thread Kuo-Jung Su
From: Kuo-Jung Su Wolfson WM8731 is a simple audio codec for embedded systems. It has 2 input and 1 output ports: ** Input ** 1. Linue-In 2. Microphone ** Output ** 1. Headphone out BTW it's based on hw/wm8750.c with 16bit I2S support by default. Signed-off-by: Kuo-Jung Su --- C

Re: [Qemu-devel] memcpy speed (Re: [PATCH v2] netmap backend (revised))

2013-01-24 Thread Stefan Hajnoczi
On Thu, Jan 24, 2013 at 6:35 PM, Luigi Rizzo wrote: > On Thu, Jan 24, 2013 at 09:54:19AM +0100, Stefan Hajnoczi wrote: >> On Wed, Jan 23, 2013 at 06:55:59PM -0800, Luigi Rizzo wrote: >> > On Wed, Jan 23, 2013 at 8:03 AM, Luigi Rizzo wrote: >> > >> > > > I'm even doubtful that it's always a win on

[Qemu-devel] [PATCH v2] hw/nand.c: bug fix to erase operation

2013-01-24 Thread Kuo-Jung Su
From: Kuo-Jung Su The s->addr should be reset along with the s->addrlen, or it might contains the previous address at last address cycle, and causes problem to nand erase operation. Signed-off-by: Kuo-Jung Su Cc: bal...@zabor.org --- Changes for v2: - coding style fix --- hw/nand.c |1

[Qemu-devel] [PATCH v2] hw/nand.c: bug fix to BUSY/READY status bit

2013-01-24 Thread Kuo-Jung Su
From: Kuo-Jung Su The status register coding for BUSY/READY(BIT6) is actually [Busy:0, Ready:1]. BTW, this patch not only apply the bug fix to status bit, but also update the Busy/Ready status upon nand flash read/write/erase. Signed-off-by: Kuo-Jung Su Cc: bal...@zabor.org --- Changes for v2:

Re: [Qemu-devel] [RFC] qemu snapshot enchancement

2013-01-24 Thread Dietmar Maurer
> My understanding is internal snapshots is obvious fast in both > deleting and reading, and I have similar questions, Dietmar, could > u tip more how you use this case while 2 snapshot layer exist? > >>> > >>> To be honest, I don't really understand what you talk about here. >

Re: [Qemu-devel] [PATCH] Makefile: remove *.lo files when make clean

2013-01-24 Thread Stefan Hajnoczi
On Fri, Jan 25, 2013 at 6:25 AM, liguang wrote: > remove *.lo files, they will bring errors during > build after a make clean, e.g. > make clean > make > lt LINK libcacard.la > gcc: stubs/.libs/arch-query-cpu-def.o: No such file or directory > gcc: stubs/.libs/clock-warp.o: No such file or directo

[Qemu-devel] [PATCH v2] target-arm: add Faraday ARMv5TE processors support

2013-01-24 Thread Kuo-Jung Su
From: Kuo-Jung Su Faraday processors are a series of ARMv4/ARMv5TE clone. * ARMv4 series (FA526, FA626). All of them are now out-of-date, so I have no plan for them. * ARMv5TE series (FA606TE, FA626TE, FA616TE, FA726TE) All the single core RISC listed above are included in this patch.

Re: [Qemu-devel] [RFC] qemu snapshot enchancement

2013-01-24 Thread Wenchao Xia
于 2013-1-25 14:42, Dietmar Maurer 写道: My understanding is internal snapshots is obvious fast in both deleting and reading, and I have similar questions, Dietmar, could u tip more how you use this case while 2 snapshot layer exist? To be honest, I don't really understand what you talk about

Re: [Qemu-devel] [RFC] qemu snapshot enchancement

2013-01-24 Thread Dietmar Maurer
> >> My understanding is internal snapshots is obvious fast in both > >> deleting and reading, and I have similar questions, Dietmar, could u > >> tip more how you use this case while 2 snapshot layer exist? > > > > To be honest, I don't really understand what you talk about here. > > There are

[Qemu-devel] [Bug 1091115] Re: windowsXP install in qemu-system-i386 1.3.0 ends with a BSOD 0x7E in acpi.sys

2013-01-24 Thread Bryan D. Payne
I have also verified that the BIOS above works with Windows XP (SP2). -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1091115 Title: windowsXP install in qemu-system-i386 1.3.0 ends with a BSOD 0x7E

[Qemu-devel] [Bug 1096712] Re: qemu 1.3.0: Windows XP doesn't boot with BSOD STOP 7E in acpi.sys

2013-01-24 Thread Bryan D. Payne
*** This bug is a duplicate of bug 1091115 *** https://bugs.launchpad.net/bugs/1091115 I'm seeing this too. Any known work arounds? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1096712 Title:

[Qemu-devel] [PATCH] Makefile: remove *.lo files when make clean

2013-01-24 Thread liguang
remove *.lo files, they will bring errors during build after a make clean, e.g. make clean make lt LINK libcacard.la gcc: stubs/.libs/arch-query-cpu-def.o: No such file or directory gcc: stubs/.libs/clock-warp.o: No such file or directory gcc: stubs/.libs/cpu-get-clock.o: No such file or directory

[Qemu-devel] [PATCH V15 8/9] libqblock: build: add rules for test case

2013-01-24 Thread Wenchao Xia
Libtool will be used for final link, the rules do nothing if libqblock was disabled. Temp directory was used to store image created in test, which will be deleted in clean. Signed-off-by: Wenchao Xia --- tests/Makefile | 13 - 1 files changed, 12 insertions(+), 1 deletions(-) di

[Qemu-devel] [PATCH V15 6/9] libqblock: libqblock API design and type defines

2013-01-24 Thread Wenchao Xia
Public API design header files: libqblock.h, libqblock-error.h. Public type define header files: libqblock-types.h. Private internal used header files: libqblock-internal. For ABI some reserved bytes are used in structure defines. Macro LIBQB_DLL_PUBLIC was used to export symbols. Important APIs

[Qemu-devel] [PATCH V15 3/9] libqblock: build: add rule for libqblock.la

2013-01-24 Thread Wenchao Xia
Now libqblock.la can be built with neccessary object files, and can be automatically cleaned by make clean in root directory. make libqblock-clean also clean it. -fvisibility=hidden was used to hide symbols, and a special macro was introduced to export symbols that marked as public. Signed-off-b

[Qemu-devel] [PATCH V15 4/9] libqblock: build: add packaging support

2013-01-24 Thread Wenchao Xia
Now libqblock can be packaged and installed by "sudo make install-libqblock'. Signed-off-by: Wenchao Xia --- libqblock/Makefile | 35 ++- libqblock/libqblock.pc.in | 13 + 2 files changed, 43 insertions(+), 5 deletions(-) create mode

[Qemu-devel] [PATCH V15 1/9] build: add command check-clean

2013-01-24 Thread Wenchao Xia
This command will package the clean operations in tests, to make it easy to be extended. Now root Makefile simply calls the command and do not care the details of it any more. Signed-off-by: Wenchao Xia --- Makefile |1 - tests/Makefile | 12 +++- 2 files changed, 11 insert

Re: [Qemu-devel] [Qemu-ppc] [PATCH v10 1/4] use image_file_reset to reload initrd

2013-01-24 Thread Yin Olivia-R63875
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Friday, January 25, 2013 12:58 AM > To: Yin Olivia-R63875 > Cc: qemu-devel@nongnu.org; qemu-...@nongnu.org > Subject: Re: [Qemu-ppc] [PATCH v10 1/4] use image_file_reset to reload > initrd > > > On 24.01.2013, at

[Qemu-devel] [PATCH V15 9/9] libqblock: test: libqblock test example

2013-01-24 Thread Wenchao Xia
In this example, first it will create some qcow2 images, then try get information including backing file relationship, then it will do sync IO on the image. Signed-off-by: Wenchao Xia --- tests/check-libqblock-qcow2.c | 392 + 1 files changed, 392 inser

[Qemu-devel] [PATCH V15 7/9] libqblock: libqblock API implement

2013-01-24 Thread Wenchao Xia
This patch contains implemention for APIs. Basically it is a layer above qemu block general layer now. Signed-off-by: Wenchao Xia --- libqblock/libqblock-error.c | 57 +++ libqblock/libqblock.c | 1071 +++ 2 files changed, 1128 insertions(+), 0 d

[Qemu-devel] [PATCH V15 5/9] block: export function path_has_protocol()

2013-01-24 Thread Wenchao Xia
libqblock need to use it. Signed-off-by: Wenchao Xia --- block.c |2 +- include/block/block.h |2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index 6fa7c90..67afd6a 100644 --- a/block.c +++ b/block.c @@ -195,7 +195,7 @@ static void

[Qemu-devel] [PATCH V15 2/9] libqblock: build: add configure support

2013-01-24 Thread Wenchao Xia
Rule for libqblock.la will be included if it is enabled, and will be added to 'all' to be automatically built. Signed-off-by: Wenchao Xia --- Makefile |3 +++ configure | 26 ++ libqblock/Makefile |4 3 files changed, 33 insertions(+),

[Qemu-devel] [PATCH V15 0/9] libqblock qemu block layer library

2013-01-24 Thread Wenchao Xia
These patches introduce libqblock API, make subdir-libqblock and make check-libqblock could build this library. Functionalities: 1 create a new image. 2 sync access of an image. 3 basic image information retrieving such as backing file. 4 detect if a sector is allocated in an image. Supported

Re: [Qemu-devel] [PATCH V14 02/10] build: use check-clean in root Makefile

2013-01-24 Thread Wenchao Xia
于 2013-1-24 16:27, Paolo Bonzini 写道: Il 24/01/2013 02:51, Wenchao Xia ha scritto: You can put the dependency in tests/Makefile. Paolo tests/Makefile would not be included, so it will directly fail. Actually I use this variable as a bridge between root Makefile and sub Makefile which would

Re: [Qemu-devel] [Qemu-ppc] [PATCH 3/6] target-ppc: Synchronize more SPRs to KVM using ONE_REG interface

2013-01-24 Thread David Gibson
On Thu, Jan 24, 2013 at 05:32:42PM +0100, Alexander Graf wrote: > > On 24.01.2013, at 04:20, David Gibson wrote: > > > There are currently a batch of occasionally used SPRs whose state we do > > not synchronize with KVM. This might be a problem for debugging, and will > > definitely be a problem

Re: [Qemu-devel] Where can I start?

2013-01-24 Thread Hector Han
Stefan. Thanks for the good advice. I'm very glad to hear about that. I'll try and if I have any question, i'll post again. Thanks again. hope you Have a great day. -Original Message- From: "Stefan Hajnoczi" To: "한상훈"; Cc:

Re: [Qemu-devel] [RFC] qemu snapshot enchancement

2013-01-24 Thread Wenchao Xia
于 2013-1-24 13:51, Dietmar Maurer 写道: * Like Case 2, the benefit isn't clear to me. In a scenario where you use both QEMU and LVM snapshots there is now an extra management overhead of cleaning up 2 snapshots instead of just 1 when the user wants to delete a snapshot. I think

[Qemu-devel] [PATCH] PPC: Move ppc specific hw emulation to hw/ppc

2013-01-24 Thread Alexander Graf
This patch moves all PowerPC specific hardware emulation except for PREP to hw/ppc. Signed-off-by: Alexander Graf --- MAINTAINERS | 20 ++-- hw/Makefile.objs | 16 +--- hw/ppc/Makefile.objs | 38 ++

Re: [Qemu-devel] [PATCH 4/7 v2] KVM regsync: Add register bitmap parameter to do_kvm_cpu_synchronize_state

2013-01-24 Thread Alexander Graf
On 25.01.2013, at 01:01, Marcelo Tosatti wrote: > On Thu, Jan 24, 2013 at 06:44:50PM -0200, Marcelo Tosatti wrote: >> On Thu, Jan 24, 2013 at 01:40:49PM +0100, Alexander Graf wrote: read_reg(x) if x not cached arch_get_regs(RUNTIME_STATE) (*) write_reg(x, v

Re: [Qemu-devel] [PATCH 4/7 v2] KVM regsync: Add register bitmap parameter to do_kvm_cpu_synchronize_state

2013-01-24 Thread Marcelo Tosatti
On Thu, Jan 24, 2013 at 06:44:50PM -0200, Marcelo Tosatti wrote: > On Thu, Jan 24, 2013 at 01:40:49PM +0100, Alexander Graf wrote: > > > read_reg(x) > > > if x not cached > > > arch_get_regs(RUNTIME_STATE) (*) > > > > > > write_reg(x, val) > > > read_reg(x) > > > cpustate->x = val;

[Qemu-devel] [PATCH] s390: Move hw files to hw/s390x

2013-01-24 Thread Alexander Graf
This moves all files only used by s390 system emulation to hw/s390x. Signed-off-by: Alexander Graf --- hw/s390x/Makefile.objs |2 -- hw/{ => s390x}/s390-virtio-bus.c |8 hw/{ => s390x}/s390-virtio-bus.h | 12 ++-- hw/s390x/s390-virtio-hcall.c |2 +- h

Re: [Qemu-devel] [PATCH 4/7 v2] KVM regsync: Add register bitmap parameter to do_kvm_cpu_synchronize_state

2013-01-24 Thread Scott Wood
On 01/24/2013 12:22:56 PM, Peter Maydell wrote: On 24 January 2013 18:17, Scott Wood wrote: > On 01/24/2013 06:41:05 AM, Alexander Graf wrote: >> But maybe the better solution would be a special "write to clear" ONE_REG >> register to clear specific bits and a big hammer "set" ONE_REG (which

Re: [Qemu-devel] [PATCH] virtio-s390: add a reset function to virtio-s390 devices

2013-01-24 Thread Alexander Graf
On 10.01.2013, at 15:40, Paolo Bonzini wrote: > virtio-s390 devices are not being reset when their bus is. To fix > this, add a reset method that forwards to virtio_reset. This is > only needed because of the "strange" modeling of virtio devices; > the ->vdev link is being handled manually rath

[Qemu-devel] [PATCH][TRIVIAL] vl: coding style cleanups

2013-01-24 Thread Jesse Larrew
Reformat the option parsing code in main() and various supporting functions to conform to the QEMU coding style. Signed-off-by: Jesse Larrew --- vl.c | 476 +-- 1 file changed, 260 insertions(+), 216 deletions(-) diff --git a/vl.c

Re: [Qemu-devel] [PATCH 3/3] scripts: A script to create linux container using qemu-linux-user.

2013-01-24 Thread Alexander Graf
Am 24.01.2013 um 21:16 schrieb Laurent Vivier : > Le jeudi 24 janvier 2013 à 19:05 +0100, Alexander Graf a écrit : >> On 20.01.2013, at 00:21, Laurent Vivier wrote: > [...] >>> +create_root() { >>> +# sanity check >>> + >>> +if [ $(readlink -f ${CONTAINER_PATH}/) = "/" ] >>> +then >>

Re: [Qemu-devel] [PATCH 1/3] scripts: extract ELF magics from qemu-binfmt-conf.sh

2013-01-24 Thread Alexander Graf
Am 24.01.2013 um 21:10 schrieb Laurent Vivier : > Le jeudi 24 janvier 2013 à 19:07 +0100, Alexander Graf a écrit : >> On 20.01.2013, at 00:20, Laurent Vivier wrote: >> >>> Signed-off-by: Laurent Vivier > [...] >>> index 0da2618..6235637 >>> --- a/scripts/qemu-binfmt-conf.sh >>> +++ b/scripts/q

Re: [Qemu-devel] [kvmarm] [PATCH] arm: vexpress: Clear sysctl cfgctrl start bit

2013-01-24 Thread Alexander Spyridakis
On 24 January 2013 19:57, Peter Maydell wrote: > It appears to be one of the reasons. The other is that > the kernel is trashing the device tree because it > happens to be sitting in the same page as the last > part-page of the initrd, and free_initrd_mem() rounds > up to a page boundary when poi

Re: [Qemu-devel] [PATCH 4/7 v2] KVM regsync: Add register bitmap parameter to do_kvm_cpu_synchronize_state

2013-01-24 Thread Marcelo Tosatti
On Thu, Jan 24, 2013 at 01:40:49PM +0100, Alexander Graf wrote: > > read_reg(x) > > if x not cached > > arch_get_regs(RUNTIME_STATE) (*) > > > > write_reg(x, val) > > read_reg(x) > > cpustate->x = val; > > mark_dirty(x) > > > > Which is basically the pattern used in KV

Re: [Qemu-devel] [PATCH 00/57] target-i386 eflags cleanup and bmi/adx extensions

2013-01-24 Thread Richard Henderson
On 01/24/2013 08:57 AM, Laurent Desnogues wrote: On Thu, Jan 24, 2013 at 5:52 PM, Richard Henderson wrote: On 2013-01-24 08:46, Laurent Desnogues wrote: I gave a quick try a your branch. My host is an x86_64 CPU and I ran an i386 nbench in user mode. It works but some parts of the benchmark

Re: [Qemu-devel] [PATCH 3/3] scripts: A script to create linux container using qemu-linux-user.

2013-01-24 Thread Laurent Vivier
Le jeudi 24 janvier 2013 à 19:05 +0100, Alexander Graf a écrit : > On 20.01.2013, at 00:21, Laurent Vivier wrote: [...] > > +create_root() { > > + # sanity check > > + > > + if [ $(readlink -f ${CONTAINER_PATH}/) = "/" ] > > + then > > + echo "ERROR: invalid path ${CONTAINER_PATH}"

Re: [Qemu-devel] [PATCH 1/3] scripts: extract ELF magics from qemu-binfmt-conf.sh

2013-01-24 Thread Laurent Vivier
Le jeudi 24 janvier 2013 à 19:07 +0100, Alexander Graf a écrit : > On 20.01.2013, at 00:20, Laurent Vivier wrote: > > > Signed-off-by: Laurent Vivier [...] > > index 0da2618..6235637 > > --- a/scripts/qemu-binfmt-conf.sh > > +++ b/scripts/qemu-binfmt-conf.sh > > @@ -1,69 +1,59 @@ > > #!/bin/sh >

[Qemu-devel] [PATCH for-1.4?] ide/mmio: QOM'ify MMIO IDE for R2D

2013-01-24 Thread Andreas Färber
It was not qdev'ified before, so turn it into a SysBusDevice. Keep mmio_ide_init_drives() around to attach the hard drive. Signed-off-by: Andreas Färber Cc: Markus Armbruster --- hw/ide.h |5 +--- hw/ide/mmio.c | 92 + hw/r2d.c

Re: [Qemu-devel] [kvmarm] [PATCH] arm: vexpress: Clear sysctl cfgctrl start bit

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 20:16, Peter Maydell wrote: > On 24 January 2013 19:01, Alexander Graf wrote: >> Does it reboot / shut down for you with this patch? > > Well, my test 3.8-rc4 kernel for vexpress-a9 reboots > and shuts down ok, yes. Awesome. I tried vexpress-a15 with kvm this week and there m

Re: [Qemu-devel] [kvmarm] [PATCH] arm: vexpress: Clear sysctl cfgctrl start bit

2013-01-24 Thread Peter Maydell
On 24 January 2013 19:01, Alexander Graf wrote: > Does it reboot / shut down for you with this patch? Well, my test 3.8-rc4 kernel for vexpress-a9 reboots and shuts down ok, yes. -- PMM

[Qemu-devel] [PATCH for-1.4] hw/arm_boot: Align device tree to 4KB boundary, not page

2013-01-24 Thread Peter Maydell
Align the device tree blob to a 4KB boundary, not to QEMU's idea of a page boundary -- the latter is the smallest possible page size for the architecture, which on ARM is 1KB. The documentation for Linux does not impose separation or alignment requirements on the device tree blob, but in practice s

Re: [Qemu-devel] [kvmarm] [PATCH] arm: vexpress: Clear sysctl cfgctrl start bit

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 19:57, Peter Maydell wrote: > On 24 January 2013 18:54, Alexander Graf wrote: >> On 22.12.2012, at 20:03, Christoffer Dall wrote: >>> The start bit should only be set to indicate that a function call is >>> underway, right now. When done with function, clear it. >> >> Is this

Re: [Qemu-devel] [PATCH V11 2/4] Create four opts list related functions

2013-01-24 Thread Markus Armbruster
Dong Xu Wang writes: > This patch will create 4 functions, count_opts_list, append_opts_list, > free_opts_list and print_opts_list, they will used in following commits. > > Signed-off-by: Dong Xu Wang > --- > v6->v7): > 1) Fix typo. > > v5->v6): > 1) allocate enough space in append_opts_list fun

Re: [Qemu-devel] [kvmarm] [PATCH] arm: vexpress: Clear sysctl cfgctrl start bit

2013-01-24 Thread Peter Maydell
On 24 January 2013 18:54, Alexander Graf wrote: > On 22.12.2012, at 20:03, Christoffer Dall wrote: >> The start bit should only be set to indicate that a function call is >> underway, right now. When done with function, clear it. > > Is this the reason 3.8 doesn't run properly? It appears to be

Re: [Qemu-devel] [kvmarm] [PATCH] arm: vexpress: Clear sysctl cfgctrl start bit

2013-01-24 Thread Alexander Graf
On 22.12.2012, at 20:03, Christoffer Dall wrote: > The start bit should only be set to indicate that a function call is > underway, right now. When done with function, clear it. Is this the reason 3.8 doesn't run properly? Alex > > Cc: Peter Maydell > Signed-off-by: Christoffer Dall > ---

Re: [Qemu-devel] [PATCH V11 1/4] add def_value_str and use it in qemu_opts_print

2013-01-24 Thread Markus Armbruster
Dong Xu Wang writes: > 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 possible option, wheth

Re: [Qemu-devel] [PATCH 4/7 v2] KVM regsync: Add register bitmap parameter to do_kvm_cpu_synchronize_state

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 19:17, Scott Wood wrote: > On 01/24/2013 06:41:05 AM, Alexander Graf wrote: >> On 16.01.2013, at 18:23, Marcelo Tosatti wrote: >> > What register is that and why it cannot be synced normally? When is it >> > necessary to sync it? >> We need to sync it on the above 2 occasions. >

Re: [Qemu-devel] [PATCH 4/7 v2] KVM regsync: Add register bitmap parameter to do_kvm_cpu_synchronize_state

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 19:22, Peter Maydell wrote: > On 24 January 2013 18:17, Scott Wood wrote: >> On 01/24/2013 06:41:05 AM, Alexander Graf wrote: >>> But maybe the better solution would be a special "write to clear" ONE_REG >>> register to clear specific bits and a big hammer "set" ONE_REG (which

Re: [Qemu-devel] [PATCH 4/7 v2] KVM regsync: Add register bitmap parameter to do_kvm_cpu_synchronize_state

2013-01-24 Thread Peter Maydell
On 24 January 2013 18:17, Scott Wood wrote: > On 01/24/2013 06:41:05 AM, Alexander Graf wrote: >> But maybe the better solution would be a special "write to clear" ONE_REG >> register to clear specific bits and a big hammer "set" ONE_REG (which we >> have already) for reset only. >> >> That would

[Qemu-devel] [Bug 1103868] Re: drive_mirror crashes on full disk copy of a resized disk with a backing file

2013-01-24 Thread Vish Ishaya
Reformatted patch and submitted upstream: http://lists.gnu.org/archive/html/qemu-devel/2013-01/msg04585.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1103868 Title: drive_mirror crashes on fu

[Qemu-devel] [Bug 1103903] Re: drive_mirror on a resized image creates file with wrong size

2013-01-24 Thread Vish Ishaya
reformatted patch and submitted upstream: http://lists.gnu.org/archive/html/qemu-devel/2013-01/msg04584.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1103903 Title: drive_mirror on a resized

Re: [Qemu-devel] [PATCH 4/7 v2] KVM regsync: Add register bitmap parameter to do_kvm_cpu_synchronize_state

2013-01-24 Thread Scott Wood
On 01/24/2013 06:41:05 AM, Alexander Graf wrote: On 16.01.2013, at 18:23, Marcelo Tosatti wrote: > What register is that and why it cannot be synced normally? When is it > necessary to sync it? We need to sync it on the above 2 occasions. Thinking about this a bit more, we're trying to kee

Re: [Qemu-devel] [PATCH] qapi/x86: add control registers to query-cpus

2013-01-24 Thread Peter Feiner
> What about converting 'info registers' to QMP (ie. having > query-cpu-registers)? We had thought about it, but we decided to go with this lower hanging fruit because it provides immediately useful functionality at a low implementation cost. It's harder (for us) to think of why would anyone want

[Qemu-devel] [Bug 1103868] Re: drive_mirror crashes on full disk copy of a resized disk with a backing file

2013-01-24 Thread Vish Ishaya
** Changed in: qemu Status: New => In Progress ** Changed in: qemu Assignee: (unassigned) => Vish Ishaya (vishvananda) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1103868 Title: driv

[Qemu-devel] [Bug 1103903] Re: drive_mirror on a resized image creates file with wrong size

2013-01-24 Thread Vish Ishaya
** Changed in: qemu Status: New => In Progress ** Changed in: qemu Assignee: (unassigned) => Vish Ishaya (vishvananda) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1103903 Title: driv

Re: [Qemu-devel] [PATCH 1/3] scripts: extract ELF magics from qemu-binfmt-conf.sh

2013-01-24 Thread Alexander Graf
On 20.01.2013, at 00:20, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > scripts/binfmts-magic | 93 ++ > scripts/qemu-binfmt-conf.sh | 104 +++ > 2 files changed, 140 insertions(+), 57 deletions(-)

Re: [Qemu-devel] [PATCH 3/3] scripts: A script to create linux container using qemu-linux-user.

2013-01-24 Thread Alexander Graf
On 20.01.2013, at 00:21, Laurent Vivier wrote: > sudo qemu-create-lxc.sh > > This script mixes linux container, binfmt and qemu to create hybrid linux > container : container on an host kernel. > > It will create "light" emulated virtual machine with several steps : > - create a linux-user qe

Re: [Qemu-devel] [PATCH 0/5] openpic/e500: bugfixes and MPIC v4.2

2013-01-24 Thread Alexander Graf
On 22.01.2013, at 02:53, Scott Wood wrote: > Fix some miscellaneous bugs, and enable basic MPIC v4.2 support. Thanks, applied all to ppc-next. Alex

[Qemu-devel] [PATCH] block: Fix is_allocated_above with resized files

2013-01-24 Thread Vishvananda Ishaya
In an image chain, if the base image is smaller than the current image, we need to make sure to use the current images count of unallocated blocks once we get to the end of the base image. Without this change the code will return 0 blocks when it gets to the end of the base image and mirror_run wil

[Qemu-devel] [PATCH] block: Create proper size file for disk mirror

2013-01-24 Thread Vishvananda Ishaya
The qmp monitor command to mirror a disk was passing -1 for size along with the disk's backing file. This size of the resulting disk is the size of the backing file, which is incorrect if the disk has been resized. Therefore we should always pass in the size of the current disk. Signed-off-by: Vis

Re: [Qemu-devel] memcpy speed (Re: [PATCH v2] netmap backend (revised))

2013-01-24 Thread Luigi Rizzo
On Thu, Jan 24, 2013 at 09:54:19AM +0100, Stefan Hajnoczi wrote: > On Wed, Jan 23, 2013 at 06:55:59PM -0800, Luigi Rizzo wrote: > > On Wed, Jan 23, 2013 at 8:03 AM, Luigi Rizzo wrote: > > > > > > I'm even doubtful that it's always a win on FreeBSD. You have a > > > > threshold to fall back to bc

Re: [Qemu-devel] [PATCH 00/57] target-i386 eflags cleanup and bmi/adx extensions

2013-01-24 Thread Andreas Färber
Am 24.01.2013 17:17, schrieb Richard Henderson: > On 2013-01-24 01:35, Andreas Färber wrote: >> Am 24.01.2013 05:02, schrieb Richard Henderson: >>> target-i386/cpu.c | 18 +- >>> target-i386/cpu.h | 24 +- >> >> You forgot to CC me: Please point me to where

Re: [Qemu-devel] [PATCH] readline: avoid memcpy() of overlapping regions

2013-01-24 Thread Andreas Färber
Am 17.01.2013 21:13, schrieb Blue Swirl: > On Mon, Jan 14, 2013 at 9:09 AM, Stefan Hajnoczi wrote: >> Tell me what you consider the "correct" tab width for readers and I'll >> find a piece of QEMU code that was authored for a different tab width >> :). > > 8. So FWIW one exception is target-cris

Re: [Qemu-devel] [kvmarm] [RFC] Virtio-desktop: Virtio-based virtual desktop

2013-01-24 Thread Anup Patel
On Thu, Jan 24, 2013 at 8:08 PM, Alexander Graf wrote: > > On 24.01.2013, at 10:25, Stefan Hajnoczi wrote: > > > On Thu, Jan 24, 2013 at 11:40:24AM +0530, Anup Patel wrote: > >> IMHO, If we have something like Virtio-desktop specification then all > >> possible guest OSes can have support for it

Re: [Qemu-devel] [PATCH] build: reinstate generated-tracers-dtrace.o

2013-01-24 Thread Paolo Bonzini
Il 24/01/2013 16:50, Stefan Hajnoczi ha scritto: > Generated trace event code is written to trace/generated-tracers.c. The > 'dtrace' backend does not generate C code, instead the dtrace(1) utility > takes a .dtrace file as input and produces a .o file as output. > > Therefore, with 'dtrace' we h

Re: [Qemu-devel] [Qemu-ppc] [PATCH v10 2/4] use uimage_reset to reload uImage

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 02:26, Olivia Yin wrote: > Signed-off-by: Olivia Yin > --- > hw/loader.c | 64 +++ > 1 files changed, 51 insertions(+), 13 deletions(-) > > diff --git a/hw/loader.c b/hw/loader.c > index 4fa9965..288a1ba 100644 > --- a/h

Re: [Qemu-devel] [Qemu-ppc] [PATCH v10 1/4] use image_file_reset to reload initrd

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 02:26, Olivia Yin wrote: > Signed-off-by: Olivia Yin > --- > hw/loader.c | 25 + > hw/loader.h |6 ++ > 2 files changed, 31 insertions(+), 0 deletions(-) > > diff --git a/hw/loader.c b/hw/loader.c > index ba01ca6..4fa9965 100644 > --- a/hw/loade

Re: [Qemu-devel] [PATCH 46/57] target-i386: Implement ANDN

2013-01-24 Thread Richard Henderson
On 2013-01-24 08:51, Andreas Färber wrote: Note this will conflict with the upcoming 1.4 qom-cpu pull, which drops the duplicate list built from the array. Ok, thanks for the heads-up. I'll rebase as mainline changes. r~

Re: [Qemu-devel] [PATCH 00/57] target-i386 eflags cleanup and bmi/adx extensions

2013-01-24 Thread Richard Henderson
On 2013-01-24 08:46, Laurent Desnogues wrote: I gave a quick try a your branch. My host is an x86_64 CPU and I ran an i386 nbench in user mode. It works but some parts of the benchmark are noticeably slower (>10%). Is that expected? Nope. Everything in there should be about speeding up... I

Re: [Qemu-devel] [PATCH 46/57] target-i386: Implement ANDN

2013-01-24 Thread Andreas Färber
Am 24.01.2013 05:03, schrieb Richard Henderson: > As this is the first of the BMI insns to be implemented, > this carries quite a bit more baggage than normal. > > Signed-off-by: Richard Henderson > --- > target-i386/cpu.c | 10 +- > target-i386/translate.c | 19 +--

Re: [Qemu-devel] [0/6] Revised outstanding pseries patches

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 04:20, David Gibson wrote: > Hello again, Alex > > This series has the brown paper bag mistake in the ONE_REG code > corrected and also adds a trivial convenience patch which makes > conflicts with libvirt less likely. > > Please apply. Thanks, applied 1/6, 2/6 and 6/6. The o

Re: [Qemu-devel] [PATCH 5/6] target-ppc: Synchronize VPA state with KVM

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 04:20, David Gibson wrote: > For PAPR guests, KVM tracks the various areas registered with the > H_REGISTER_VPA hypercall. For full emulation, of course, these are tracked > within qemu. At present these values are not synchronized. This is a > problem for reset (qemu's reset

Re: [Qemu-devel] [PATCH 00/57] target-i386 eflags cleanup and bmi/adx extensions

2013-01-24 Thread Laurent Desnogues
On Thu, Jan 24, 2013 at 5:02 AM, Richard Henderson wrote: > This is a re-working of Paolo's eflags cleanup from October, which > I consider a pre-requisite to implementing the ADX extension. I've > rearranged most of the patches in trivial ways, and some quite > significantly. > > I've tested the

[Qemu-devel] [RFC v5 0/8] QEMU: Support KVM on ARM

2013-01-24 Thread Peter Maydell
Round 5 of the QEMU patches to support KVM for ARM on Cortex-A15 hardware. It's intended for use with the kernel tree at git://github.com/virtualopensystems/linux-kvm-arm.git kvm-arm-v17-vgic-timers Still RFC pending the kernel patches actually being accepted upstream... Changes v4 to v5: * no

Re: [Qemu-devel] [PATCH V2 2/6] hw/mdio: Generalize etraxfs MDIO bitbanging emulation (fwd)

2013-01-24 Thread Edgar E. Iglesias
On Thu, Jan 24, 2013 at 02:21:09PM +, Paul Brook wrote: > > > > It also worries me that there isn't a clean separation between the MDIO > > > > bus and the bitbang interface. IMO the bitbang interface should be a > > > > separate device, and if we're wiring up bitbang interfaces then it > > >

Re: [Qemu-devel] [PATCH 4/6] target-ppc: Synchronize FPU state with KVM

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 04:20, David Gibson wrote: > Currently qemu does not get and put the state of the floating point and > vector registers to KVM. This is obviously a problem for savevm, as well > as possibly being problematic for debugging of FP-using guests. > > This patch fixes this by using

[Qemu-devel] [PATCH for-1.4] qemu-char: Avoid unused variable warning in some configs

2013-01-24 Thread Peter Maydell
Avoid unused variable warnings: qemu-char.c: In function 'qmp_chardev_open_port': qemu-char.c:3132: warning: unused variable 'fd' qemu-char.c:3132: warning: unused variable 'flags' in configurations with neither HAVE_CHARDEV_TTY nor HAVE_CHARDEV_PARPORT set. Signed-off-by: Peter Maydell --- Spec

Re: [Qemu-devel] [PATCH] target-mips: Sign-extend the result of LWR

2013-01-24 Thread Richard Henderson
On 2013-01-20 11:30, Richard Sandiford wrote: Sign-extend the result of LWR, as is already done for LWL. This is necessary in the case where LWR loads the full word (i.e. the address is actually aligned). In the other cases, it is implementation defined whether the upper 32 bits of the result a

Re: [Qemu-devel] [PATCH] target-mips: Fix signedness of loads in MIPS16 RESTOREs

2013-01-24 Thread Richard Henderson
On 2013-01-20 11:28, Richard Sandiford wrote: Make RESTORE use sign-extending rather than zero-extending loads. Signed-off-by: Richard Sandiford --- target-mips/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH 3/6] target-ppc: Synchronize more SPRs to KVM using ONE_REG interface

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 04:20, David Gibson wrote: > There are currently a batch of occasionally used SPRs whose state we do > not synchronize with KVM. This might be a problem for debugging, and will > definitely be a problem for savevm / migration. KVM now supports accessing > these registers via t

[Qemu-devel] [BUG, RFC] block/vmdk.c: File name with space fails to open

2013-01-24 Thread Philipp Hahn
Hello, I tried to open a "twoGbMaxExtentSparse" VMDK file, which uses spaces in its own and for the referenced file names. This breaks in line 646 of block/vmdk.c because "%511s" stops at the first space and thus fname is incomplete: ret = sscanf(p, "%10s %" SCNd64 " %10s %511s %" SCNd6

[Qemu-devel] [Bug 1103868] Re: drive_mirror crashes on full disk copy of a resized disk with a backing file

2013-01-24 Thread Vish Ishaya
** Patch added: "0001-Fixes-is_allocated_above-with-different-size-files.patch" https://bugs.launchpad.net/qemu/+bug/1103868/+attachment/3498143/+files/0001-Fixes-is_allocated_above-with-different-size-files.patch -- You received this bug notification because you are a member of qemu- devel-m

[Qemu-devel] [Bug 1103903] Re: drive_mirror on a resized image creates file with wrong size

2013-01-24 Thread Vish Ishaya
** Patch added: "0002-Create-proper-size-file-for-full-disk-mirror.patch" https://bugs.launchpad.net/qemu/+bug/1103903/+attachment/3498142/+files/0002-Create-proper-size-file-for-full-disk-mirror.patch -- You received this bug notification because you are a member of qemu- devel-ml, which is

[Qemu-devel] [Bug 1103868] Re: drive_mirror crashes on full disk copy of a resized disk with a backing file

2013-01-24 Thread Vish Ishaya
Haven't found a good workaround for this. Best I've come up with is to use the workaround described in the other bug and then coalesce the files afterwards via qemu-img convert -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://b

[Qemu-devel] [Bug 1103868] Re: drive_mirror crashes on full disk copy of a resized disk with a backing file

2013-01-24 Thread Vish Ishaya
separated the final size issue into a separate bug here: https://bugs.launchpad.net/qemu/+bug/1103903 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1103868 Title: drive_mirror crashes on full disk

[Qemu-devel] [Bug 1103903] Re: drive_mirror on a resized image creates file with wrong size

2013-01-24 Thread Vish Ishaya
Workaround is to precreate the new file of the proper size and pass -n qemu-img create -f qcow2 base 32M qemu-img create -f qcow2 -o backing_file=base disk qemu-img resize /home/vishvananda/disk 64M qemu-img create -f qcow2 -o backing_file=base test 64M qemu-system-x86_64 -drive file=disk,id=vda -

[Qemu-devel] [Bug 1103868] [NEW] drive_mirror crashes on full disk copy of a resized disk with a backing file

2013-01-24 Thread Vish Ishaya
Public bug reported: This bug was discovered using libvirt on ubuntu with a build of qemu 1.3 but it is trivailly reproducible with the curent git version. Repro steps: qemu-img create -f qcow2 base 32M qemu-img create -f qcow2 -o backing_file=base disk qemu-img resize /home/vishvananda/disk 64M

[Qemu-devel] [Bug 1103903] [NEW] drive_mirror on a resized image creates file with wrong size

2013-01-24 Thread Vish Ishaya
Public bug reported: Repro steps: qemu-img create -f qcow2 base 32M qemu-img create -f qcow2 -o backing_file=base disk qemu-img resize /home/vishvananda/disk 64M qemu-system-x86_64 -drive file=disk,id=vda -vnc :1 -monitor stdio QEMU 1.3.0 monitor - type 'help' for more information (qemu) drive_mi

[Qemu-devel] [PATCH 5/7] usb: make usb_packet_copy operate on combined packets

2013-01-24 Thread Gerd Hoffmann
Likewise usb_packet_skip. Also usb_packet_size. Signed-off-by: Gerd Hoffmann --- hw/usb.h |1 + hw/usb/core.c | 19 ++- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/hw/usb.h b/hw/usb.h index af86fbd..0d09e02 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -3

[Qemu-devel] [PATCH 1/7] usb-storage: use scsi_req_enqueue return value

2013-01-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/dev-storage.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c index b89d00f..d3f01aa 100644 --- a/hw/usb/dev-storage.c +++ b/hw/usb/dev-storage.c @@ -400,6 +400,7 @@ static void usb_msd

Re: [Qemu-devel] [PATCH for-1.4 v4 00/12] target-ppc: MacIO QOM'ification

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 10:03, Andreas Färber wrote: > Hello, > > Here's an updated MacIO conversion, now including Apple Desktop Bus (ADB). > MacIO IDE QOM'ification was requested by Markus as a prerequisite for some > to be performed change in the IDE code. > > Alex, please apply through your ppc t

[Qemu-devel] [RFC v5 6/8] target-arm: Use MemoryListener to identify GIC base address for KVM

2013-01-24 Thread Peter Maydell
When using an in-kernel GIC with KVM, we need to tell the kernel where the GIC's memory mapped registers live. Do this by registering a MemoryListener which tracks where the board model maps the A15's private peripherals, so we can finish the GIC initialisation when the GIC is actually mapped. Sig

Re: [Qemu-devel] [PATCH v8 0/2] s390: virtio-ccw transport.

2013-01-24 Thread Alexander Graf
On 24.01.2013, at 17:08, Cornelia Huck wrote: > Hi, > > patches against s390-next again, with coding style fixes. Thanks, applied to s390-next. Alex

  1   2   3   >