Re: [Qemu-devel] [PATCH] build: build block-obj-y explicitly before recursing

2014-02-27 Thread Stefan Weil
Am 28.02.2014 06:27, schrieb Stefan Weil: > Am 27.02.2014 23:50, schrieb Jeff Cody: >> On Thu, Feb 27, 2014 at 11:22:08PM +0100, Paolo Bonzini wrote: >>> block-obj-y is not anymore part of common-obj-y, because "nesting" >>> variables is complicated and requires specifying the correct >>> ordering

Re: [Qemu-devel] [PATCH] build: build block-obj-y explicitly before recursing

2014-02-27 Thread Stefan Weil
Am 27.02.2014 23:50, schrieb Jeff Cody: > On Thu, Feb 27, 2014 at 11:22:08PM +0100, Paolo Bonzini wrote: >> block-obj-y is not anymore part of common-obj-y, because "nesting" >> variables is complicated and requires specifying the correct >> ordering in the calls to unnest-vars. However, because o

Re: [Qemu-devel] [PATCH RFC] kvm: ignore apic polarity

2014-02-27 Thread Michael S. Tsirkin
On Thu, Feb 27, 2014 at 11:30:55PM +0100, Paolo Bonzini wrote: > Il 27/02/2014 22:41, Gabriel L. Somlo ha scritto: > >On Thu, Feb 27, 2014 at 07:05:49PM +0200, Michael S. Tsirkin wrote: > >>apic polarity in KVM does not work: too many things assume active high. > >>Let's not pretend it works, let's

[Qemu-devel] [PATCH 0/7] migration: Optimization the xbzrle and fix two corruption issues

2014-02-27 Thread Gonglei (Arei)
a. Optimization the xbzrle remarkable decrease the cache misses. The efficiency of compress increases more than fifty times. Before the patch set, the cache almost totally miss when the number of cache item less than the dirty page number. Now the hot pages in the cache will not be

[Qemu-devel] [PATCH 6/7] migraion: optimiztion xbzrle by reducing data copy

2014-02-27 Thread Gonglei (Arei)
Reducing data copy can reduce cpu overheah. Signed-off-by: ChenLiang Signed-off-by: Gonglei --- arch_init.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch_init.c b/arch_init.c index 2211e0b..cc88875 100644 --- a/arch_init.c +++ b/arch_init.c @@ -344,11 +344,8 @

[Qemu-devel] [PATCH 7/7] migraion: delete death code

2014-02-27 Thread Gonglei (Arei)
delete death code. Signed-off-by: ChenLiang Signed-off-by: Gonglei --- arch_init.c | 13 - 1 file changed, 13 deletions(-) diff --git a/arch_init.c b/arch_init.c index cc88875..12fbcea 100644 --- a/arch_init.c +++ b/arch_init.c @@ -178,13 +178,10 @@ static inline bool is_zero_range

[Qemu-devel] [PATCH 4/7] XBZRLE: rebuild the cache_is_cached function

2014-02-27 Thread Gonglei (Arei)
Rebuild the cache_is_cached function. Signed-off-by: ChenLiang Signed-off-by: Gonglei --- page_cache.c | 33 +++-- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/page_cache.c b/page_cache.c index fa58ab2..34ec933 100644 --- a/page_cache.c +++ b/page_

[Qemu-devel] [PATCH 5/7] migration: Fix the migrate auto converge process

2014-02-27 Thread Gonglei (Arei)
It is inaccuracy and complex that using the transfer speed of migration thread to determine whether the convergence migration. The dirty page may be compressed by XBZRLE or ZERO_PAGE.The counter of updating dirty bitmap will be increasing continuously if the migration can't convergence. Signed-off

[Qemu-devel] [PATCH 1/7] XBZRLE: Fix one XBZRLE corruption issues

2014-02-27 Thread Gonglei (Arei)
The page may not be inserted into cache after executing save_xbzrle_page. In case of failure to insert, the original page should be sent rather than the page in the cache. Signed-off-by: ChenLiang Signed-off-by: Gonglei --- arch_init.c | 25 + 1 file changed, 13 insertio

[Qemu-devel] [PATCH 3/7] XBZRLE: optimize XBZRLE to decrease the cache missing

2014-02-27 Thread Gonglei (Arei)
Avoid the hot pages cache replacing by others to remarkable decrease cache missing. The counter of updating dirty bitmap is used to indicate the cached page age. Signed-off-by: ChenLiang Signed-off-by: Gonglei --- arch_init.c| 8 +--- include/migration/page_cache.h | 8

[Qemu-devel] [PATCH 2/7] migration: Add counters of updating the dirty bitmap

2014-02-27 Thread Gonglei (Arei)
Add counters to log the times of updating the dirty bitmap. Signed-off-by: ChenLiang Signed-off-by: Gonglei --- arch_init.c | 20 1 file changed, 20 insertions(+) diff --git a/arch_init.c b/arch_init.c index bc8d0eb..6823c5a 100644 --- a/arch_init.c +++ b/arch_init.c @@ -1

[Qemu-devel] [RFC PATCH v2] kvm: x86: ignore ioapic polarity

2014-02-27 Thread Gabriel L. Somlo
Both QEMU and KVM have already accumulated a significant number of optimizations based on the hard-coded assumption that ioapic polarity will always use the ActiveHigh convention, where the logical and physical states of level-triggered irq lines always match (i.e., active(asserted) == high == 1, i

[Qemu-devel] migrate to fd - how to use with HMP?

2014-02-27 Thread Alexey Kardashevskiy
Hi! libvirt uses live migration to fd. I got some bugreports recently and decided to try it without libvirt. So I opened HMP and found "getfd" command. Then with the help of Stefan I tried to use it. And failed. I run QEMU as this: /home/aik/qemu-system-ppc64 \ -enable-kvm \ -m 10

[Qemu-devel] [Bug 688085] Re: Guest kernel hang during boot when KVM is active on i386 host

2014-02-27 Thread Adolfo Jayme
(Untargetting end-of-life release) ** No longer affects: kvm (Ubuntu Maverick) ** No longer affects: linux (Ubuntu Maverick) ** No longer affects: qemu (Ubuntu Maverick) ** No longer affects: qemu-kvm (Ubuntu Maverick) -- You received this bug notification because you are a member of qemu- de

[Qemu-devel] [PATCH v6 2/4] raw, qcow2: don't convert file size to sector size

2014-02-27 Thread Hu Tao
and avoid converting it back later. Signed-off-by: Hu Tao --- block/qcow2.c | 8 block/raw-posix.c | 4 ++-- block/raw-win32.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index d54d289..59c01f7 100644 --- a/block/qcow2.c +++

[Qemu-devel] [PATCH v6 0/4] qemu-img: add preallocation=full

2014-02-27 Thread Hu Tao
This series implements full image preallocation to create a non-sparse image file at creation time, both for raw and qcow2 format. The purpose is to avoid performance deterioration of the guest cause by sparse image. v6: - add `Since 2.0' to PreallocMode - apply total_size change to raw-win32

[Qemu-devel] [PATCH v6 4/4] qcow2: Add full image preallocation option

2014-02-27 Thread Hu Tao
This adds a preallocation=full mode to qcow2 image creation, which creates a non-sparse image file. Signed-off-by: Hu Tao --- block/qcow2.c | 75 --- 1 file changed, 72 insertions(+), 3 deletions(-) diff --git a/block/qcow2.c b/block/qcow2

[Qemu-devel] [PATCH v6 1/4] qapi: introduce PreallocMode and a new PreallocMode full.

2014-02-27 Thread Hu Tao
This patch prepares for the subsequent patches. Reviewed-by: Fam Zheng Reviewed-by: Eric Blake Signed-off-by: Hu Tao --- block/qcow2.c| 8 qapi-schema.json | 14 ++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 0b4

[Qemu-devel] [PATCH v6 3/4] raw-posix: Add full image preallocation option

2014-02-27 Thread Hu Tao
This patch adds a new option preallocation for raw format, and implements full preallocation. Signed-off-by: Hu Tao --- block/raw-posix.c | 43 +++ 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c index 0

Re: [Qemu-devel] [PATCH 1/2] tests-ppc64: add to cleanup rule

2014-02-27 Thread Alexey Kardashevskiy
On 02/14/2014 03:03 PM, Alexey Kardashevskiy wrote: > On 02/11/2014 07:32 AM, Andreas Färber wrote: >> Am 10.02.2014 04:52, schrieb Alexey Kardashevskiy: >>> This adds $(check-qtest-ppc64-y) to the check-clean rule. >>> >>> Signed-off-by: Alexey Kardashevskiy >> >> Nice catch! >> >>> --- >>> test

Re: [Qemu-devel] [PATCH 1/2][RFC] qom: introduce cpu QOM hierarchy tree /machine/node/socket/core/thread/cpu.

2014-02-27 Thread Chen Fan
On Wed, 2014-02-26 at 15:52 -0300, Eduardo Habkost wrote: > On Tue, Feb 25, 2014 at 05:07:31PM +0800, Chen Fan wrote: > [...] > > +Object *object_get_thread_from_index(int64_t cpu_index) > > Probably the code that is going to call this function already knows what > will be the node/socket/core/thr

[Qemu-devel] [PATCH] pl011: fix corrupting the UARTCR value

2014-02-27 Thread Rob Herring
From: Rob Herring Offset 4 is UARTRSR/UARTECR, not the UARTCR. As framing and parity errors will never occur, we can ignore writes to this register. Signed-off-by: Rob Herring --- hw/char/pl011.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/char/pl011.c b/hw/char/

Re: [Qemu-devel] Debugging aarch64 guest running on Foundationv8 model

2014-02-27 Thread Xuebing wang
Hi Jani, The video is about aarch64 (not 32-bit arm). For your original issue, I think you need armv8 MMU support (which is not merged yet), so qemu can not handle guest virtual address like 0xffc000636498. I just tried Peter's branch, using aarch64-qemu + aarch64-gdb to cross-debug arm

Re: [Qemu-devel] [PATCH v5 RESEND 0/4] qemu-img: add preallocation=full

2014-02-27 Thread Hu Tao
On Thu, Feb 27, 2014 at 03:09:57PM +0100, Stefan Hajnoczi wrote: > On Tue, Feb 11, 2014 at 03:07:06PM +0800, Hu Tao wrote: > > This series implements full image preallocation to create a non-sparse image > > file at creation time, both for raw and qcow2 format. The purpose is to > > avoid > > perf

[Qemu-devel] [PATCH] pl011: reset the fifo when enabled or disabled

2014-02-27 Thread Rob Herring
From: Rob Herring Intermittent issues have been seen where no serial input occurs. It appears the pl011 gets in a state where the rx interrupt never fires because the rx interrupt only asserts when crossing the fifo trigger level. The fifo state appears to get out of sync when the pl011 is re-con

Re: [Qemu-devel] [PATCH] virtio: set virtio-mmio transport features for various backends

2014-02-27 Thread Mario Smarduch
Anthony, Michael, KONRAD - I would really appreciate if you (or someone else I should include) can look over this patch. Currently as things are independent transport and backend interoperability is broken, since the 'proxy' 'host_features' and for other transport/backend combinations additional

[Qemu-devel] [Bug 1285363] Re: qemu-aarch64-static segfaults

2014-02-27 Thread Serge Hallyn
** Also affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1285363 Title: qemu-aarch64-static segfaults Status in QEMU: New Status in “qemu”

Re: [Qemu-devel] [PATCH] hw/9pfs: use g_strdup_printf() instead of PATH_MAX limitation

2014-02-27 Thread Chen Gang
On 02/24/2014 08:52 PM, Markus Armbruster wrote: > Gang Chen writes: >> Excuse me, I have no enough time resources during work day, so I >> will/should send the patches within week end (2014-03-02). If we can not >> bear the time point, please help send the patches for me. > > Next weekend should

Re: [Qemu-devel] [PATCH RFC] kvm: ignore apic polarity

2014-02-27 Thread Paolo Bonzini
Il 28/02/2014 00:13, Gabriel L. Somlo ha scritto: On Thu, Feb 27, 2014 at 11:30:55PM +0100, Paolo Bonzini wrote: Il 27/02/2014 22:41, Gabriel L. Somlo ha scritto: On Thu, Feb 27, 2014 at 07:05:49PM +0200, Michael S. Tsirkin wrote: apic polarity in KVM does not work: too many things assume acti

Re: [Qemu-devel] [PATCH RFC] kvm: ignore apic polarity

2014-02-27 Thread Gabriel L. Somlo
On Thu, Feb 27, 2014 at 11:30:55PM +0100, Paolo Bonzini wrote: > Il 27/02/2014 22:41, Gabriel L. Somlo ha scritto: > >On Thu, Feb 27, 2014 at 07:05:49PM +0200, Michael S. Tsirkin wrote: > >>apic polarity in KVM does not work: too many things assume active high. > >>Let's not pretend it works, let's

[Qemu-devel] [PATCH target-arm v9 1/1] target-arm: Implements the ARM PMCCNTR register

2014-02-27 Thread Alistair Francis
This patch implements the ARM PMCCNTR register including the disable and reset components of the PMCR register. Signed-off-by: Alistair Francis --- V9: Completely #ifndef out the PMCR and PMCCNTR registers. Also use CONFIG_USER_ONLY instead of CONFIG_LINUX_USER V8: Only implement the register in

Re: [Qemu-devel] git build from clean broken?

2014-02-27 Thread Peter Maydell
On 27 February 2014 22:23, Paolo Bonzini wrote: > Can you apply also Fam's patch > > http://article.gmane.org/gmane.comp.emulators.qemu/258469/raw > > ? Sure. I'd misread Markus' reply as being opposed to it, but rereading I see he was just making a suggestion for the future. thanks -- PMM

Re: [Qemu-devel] [PATCH] build: build block-obj-y explicitly before recursing

2014-02-27 Thread Jeff Cody
On Thu, Feb 27, 2014 at 11:22:08PM +0100, Paolo Bonzini wrote: > block-obj-y is not anymore part of common-obj-y, because "nesting" > variables is complicated and requires specifying the correct > ordering in the calls to unnest-vars. However, because of this > we need to specify block-obj-y in th

Re: [Qemu-devel] [PATCH RFC] kvm: ignore apic polarity

2014-02-27 Thread Paolo Bonzini
Il 27/02/2014 22:41, Gabriel L. Somlo ha scritto: On Thu, Feb 27, 2014 at 07:05:49PM +0200, Michael S. Tsirkin wrote: apic polarity in KVM does not work: too many things assume active high. Let's not pretend it works, let's just ignore polarity flag. If we ever want to emulate it exactly, this

[Qemu-devel] [PATCH 1/1] vl.c: Add pci_hole_min_size machine option.

2014-02-27 Thread Don Slutz
This allows growing the pci_hole to the size needed. Signed-off-by: Don Slutz --- hw/i386/pc_piix.c| 14 -- hw/i386/pc_q35.c | 14 -- include/hw/i386/pc.h | 3 +++ vl.c | 16 xen-all.c| 28 +---

[Qemu-devel] [PATCH] build: build block-obj-y explicitly before recursing

2014-02-27 Thread Paolo Bonzini
block-obj-y is not anymore part of common-obj-y, because "nesting" variables is complicated and requires specifying the correct ordering in the calls to unnest-vars. However, because of this we need to specify block-obj-y in the dependencies of the target subdirectories. Thanks to Stefan Weil and

Re: [Qemu-devel] git build from clean broken?

2014-02-27 Thread Paolo Bonzini
Il 27/02/2014 23:17, Peter Maydell ha scritto: On 27 February 2014 21:50, Paolo Bonzini wrote: Il 27/02/2014 20:57, Stefan Weil ha scritto: Yes. I saw that problem, too. This patch for Makefile fixed it for me: index ccab967,a28a3c8..8ec3a99 @@@ -170,6 -159,6 +170,7 @@@ qemu-options.def: $(SR

Re: [Qemu-devel] git build from clean broken?

2014-02-27 Thread Peter Maydell
On 27 February 2014 21:50, Paolo Bonzini wrote: > Il 27/02/2014 20:57, Stefan Weil ha scritto: >> Yes. I saw that problem, too. This patch for Makefile fixed it for me: >> >> index ccab967,a28a3c8..8ec3a99 >> @@@ -170,6 -159,6 +170,7 @@@ qemu-options.def: $(SRC_PATH)/qemu-opti >> SUBDIR_RULES=$(

Re: [Qemu-devel] [PATCH V8 09/10] qapi script: do not allow string discriminator

2014-02-27 Thread Eric Blake
On 02/27/2014 04:09 AM, Wenchao Xia wrote: > From: Wenchao Xia > > Signed-off-by: Wenchao Xia > Signed-off-by: Wenchao Xia Double S-o-B. The commit message is a bit sparse; the one-line summary mentions what, but for a change like this where you are taking away functionality, it's also good t

Re: [Qemu-devel] [PATCH V8 08/10] qapi: convert BlockdevOptions to use enum discriminator

2014-02-27 Thread Eric Blake
On 02/27/2014 04:09 AM, Wenchao Xia wrote: > From: Wenchao Xia > > After this patch, hidden enum type BlockdevOptionsKind will not > be generated, and other API can use enum BlockdevDriver. > > Signed-off-by: Wenchao Xia > Signed-off-by: Wenchao Xia Double S-o-B. > --- > qapi-schema.json |

Re: [Qemu-devel] [PATCH 0/7] timer: move APIs together according to their category

2014-02-27 Thread Alex Bligh
On 25 Feb 2014, at 13:36, Xuebing Wang wrote: > There are 6 categories of APIs: > - QEMUClockType > - QEMUTimerList > - QEMUTimerListGroup > - QEMUTimer > - General utility functions > - Low level clock functions > > Problems / solutions with previous API implementations: > 1) Can not think of c

Re: [Qemu-devel] git build from clean broken?

2014-02-27 Thread Paolo Bonzini
Il 27/02/2014 20:57, Stefan Weil ha scritto: > Yes. I saw that problem, too. This patch for Makefile fixed it for me: > > index ccab967,a28a3c8..8ec3a99 > @@@ -170,6 -159,6 +170,7 @@@ qemu-options.def: $(SRC_PATH)/qemu-opti > SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) > SOFTMMU_SUBDIR

Re: [Qemu-devel] [PATCH RFC] kvm: ignore apic polarity

2014-02-27 Thread Gabriel L. Somlo
On Thu, Feb 27, 2014 at 07:05:49PM +0200, Michael S. Tsirkin wrote: > apic polarity in KVM does not work: too many things assume active high. > Let's not pretend it works, let's just ignore polarity flag. If we ever > want to emulate it exactly, this will need a feature flag anyway. > > Also repo

Re: [Qemu-devel] [PATCH V8 07/10] qapi script: support enum type as discriminator in union

2014-02-27 Thread Eric Blake
On 02/27/2014 04:09 AM, Wenchao Xia wrote: > From: Wenchao Xia > > By default, any union will automatically generate a enum type as > "[UnionName]Kind" in C code, and it is duplicated when the discriminator > is specified as a pre-defined enum type in schema. After this patch, > the pre-defined e

Re: [Qemu-devel] [PATCH v3 0/3] qapi: Allow modularization of QAPI schema files

2014-02-27 Thread Eric Blake
On 02/27/2014 08:31 AM, Luiz Capitulino wrote: > On Tue, 11 Feb 2014 14:00:14 +0100 > Lluís Vilanova wrote: > >> Adds the "include(...)" primitive to the syntax of QAPI schema files, >> allowing >> these to be modularized into multiple per-topic files in the future. > > Markus, Eric, you commen

Re: [Qemu-devel] [PATCH v3 3/3] qapi: Add tests for the "include" directive

2014-02-27 Thread Eric Blake
On 02/11/2014 06:00 AM, Lluís Vilanova wrote: > Signed-off-by: Lluís Vilanova > --- > +++ b/tests/Makefile > @@ -124,7 +124,8 @@ check-qapi-schema-y := $(addprefix tests/qapi-schema/, \ > missing-comma-object.json non-objects.json \ > qapi-schema-test.json quoted-structural-char

Re: [Qemu-devel] [PATCH v3 2/3] qapi: Add a primitive to include other files from a QAPI schema file

2014-02-27 Thread Eric Blake
On 02/11/2014 06:00 AM, Lluís Vilanova wrote: > Adds the "include(...)" primitive to the syntax of QAPI schema files. > > Signed-off-by: Lluís Vilanova > +included = self.included + [include_path_rel] > +if include_path_rel in self.included: > +

Re: [Qemu-devel] [PATCH v3] QMP: Allow dot separated dict path arguments in qmp-shell

2014-02-27 Thread Luiz Capitulino
On Wed, 12 Feb 2014 11:05:13 +0800 Fam Zheng wrote: > As another convinience to allow using commands that expect a dict as > argument, this patch adds support for foo.bar=value syntax, similar to > command line argument style: > > (QEMU) blockdev-add options.driver=file options.id=drive1 > op

[Qemu-devel] [PATCH] Makefile: Add missing dependency for system emulation (fix build)

2014-02-27 Thread Stefan Weil
Comment from Makefile.objs: # block-obj-y is code used by both qemu system emulation and qemu-img The system emulation needs this dependency (which was missing in Makefile), otherwise builds without tools (or massive parallel builds) fail. Signed-off-by: Stefan Weil --- Makefile |1 + 1 fi

Re: [Qemu-devel] [PATCH V8 06/10] qapi script: use same function to generate enum string

2014-02-27 Thread Eric Blake
On 02/27/2014 04:09 AM, Wenchao Xia wrote: > From: Wenchao Xia > > Prior to this patch, qapi-visit.py used custom code to generate enum > names used for handling a qapi union. Fix it to instead reuse common > code, with identical generated results, and allowing future updates to > generation to o

[Qemu-devel] [PATCH 1/1] pc & q35: fix handling of lowmem

2014-02-27 Thread Don Slutz
Without this, asking for 3.25G on memory for pc-i440fx-2.0 does not adjust the pci hole to start at 3G. Asking for 3.75G does do this adjustment. Here is what the current code does: out/x86_64-softmmu/qemu-system-x86_64 -serial pty ~/qemu-img/Lin-Net-disk1.raw -machine pc-i440fx-2.0 -m 3.75G B

Re: [Qemu-devel] git build from clean broken?

2014-02-27 Thread Jeff Cody
On Thu, Feb 27, 2014 at 07:38:56PM +, Peter Maydell wrote: > $ git clone git://git.qemu.org/qemu.git > [...] > $ cd qemu > $ mkdir build/a64-targets-nodbg/ && (cd build/a64-targets-nodbg/ && > '../../configure' > '--target-list=aarch64-softmmu,arm-softmmu,aarch64-linux-user,arm-linux-user' > '

Re: [Qemu-devel] git build from clean broken?

2014-02-27 Thread Stefan Weil
Am 27.02.2014 20:38, schrieb Peter Maydell: > $ git clone git://git.qemu.org/qemu.git > [...] > $ cd qemu > $ mkdir build/a64-targets-nodbg/ && (cd build/a64-targets-nodbg/ && > '../../configure' > '--target-list=aarch64-softmmu,arm-softmmu,aarch64-linux-user,arm-linux-user' > '--cc=ccache gcc' '-

[Qemu-devel] [PATCH v5] target-ppc: gdbstub allow byte swapping for reading/writing registers

2014-02-27 Thread Thomas Falcon
This patch allows registers to be properly read from and written to when using the gdbstub to debug a ppc guest running in little endian mode. It accomplishes this goal by byte swapping the values of any registers if the MSR:LE value is set. Signed-off-by: Thomas Falcon --- Differences from v4:

Re: [Qemu-devel] Call for testing QEMU aarch64-linux-user emulation

2014-02-27 Thread Dann Frazier
[Adding Alex Barcelo to the CC] On Thu, Feb 27, 2014 at 6:20 AM, Michael Matz wrote: > Hi, > > On Wed, 26 Feb 2014, Dann Frazier wrote: > >> I've narrowed down the changes that seem to prevent both types of >> segfaults to the following changes that introduce a wrapper around >> sigprocmask: >> >

[Qemu-devel] git build from clean broken?

2014-02-27 Thread Peter Maydell
$ git clone git://git.qemu.org/qemu.git [...] $ cd qemu $ mkdir build/a64-targets-nodbg/ && (cd build/a64-targets-nodbg/ && '../../configure' '--target-list=aarch64-softmmu,arm-softmmu,aarch64-linux-user,arm-linux-user' '--cc=ccache gcc' '--disable-tools') && make -C build/a64-targets-nodbg/ [...]

[Qemu-devel] [PATCH 2/2] [RFC] Convert Clock Timerlists to RCU V2

2014-02-27 Thread Mike Day
timerlists is a list of lists that holds active timers, among other items. It is read-mostly. This patch converts read access to the timerlists to use RCU. Rather than introduce a second mutex for timerlists, which would require nested mutexes to in orderwrite to the timerlists, use one QemuMutex

[Qemu-devel] [PATCH 0/2] [RFC] Convert Clock lists to RCU (V2)

2014-02-27 Thread Mike Day
The first patch in the series convers the clock->timerlists->active_timers list to RCU. The second patch converts clock->timerlists to RCU and also protects access to timerlists->active_timers->timer_list. Mike Day (2): [RFC] Convert active timers list to use RCU V2 [RFC] Convert Clock Timerli

[Qemu-devel] [PATCH 1/2] [RFC] Convert active timers list to use RCU V2

2014-02-27 Thread Mike Day
active_timers is a list of timer lists, associated with a Qemu Clock, that is read-mostly. This patch converts read accesses to the list to use RCU, which should hopefully mitigate most of the synchronization overhead. This patch applies against Paolo Bonzini's rcu branch: https://github.com/bonzi

Re: [Qemu-devel] [PATCH V8 04/10] qapi script: check correctness of union

2014-02-27 Thread Eric Blake
On 02/27/2014 04:09 AM, Wenchao Xia wrote: > From: Wenchao Xia > > Signed-off-by: Wenchao Xia > Signed-off-by: Wenchao Xia Double-S-o-B. I've also noticed that I'm getting undeliverable mail rejections from your linux.vnet.ibm.com address: TCVM.MEGACENTER.DE.IBM.COM unable to deliver followin

Re: [Qemu-devel] 【Question】About "Add an IPMI device to QEMU" patches

2014-02-27 Thread Corey Minyard
There have been some legal issues around this. Implementing IPMI requires that you sign an adopter's agreement and submit it to the IPMI group. We are not sure what that means for an open-source project. So I'm kind of in a holding pattern until I get something back from the IPMI group. I've su

[Qemu-devel] [PATCH] vfio: Correction in vfio_rom_read when attempting rom loading

2014-02-27 Thread Bandan Das
commit e638073c569e801ce9de added a flag to track whether a previous rom read had failed. Accidentally, the code ended up adding vfio_load_option_rom twice. (Thanks to Alex for spotting it) Signed-off-by: Bandan Das --- hw/misc/vfio.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) d

Re: [Qemu-devel] file_ram_alloc: unify mem-path, mem-prealloc error handling

2014-02-27 Thread Paolo Bonzini
Il 04/02/2014 19:41, Marcelo Tosatti ha scritto: -mem-prealloc asks to preallocate memory residing on -mem-path path. Currently QEMU exits in case: - Memory file has been created but allocation via explicit write fails. And it fallbacks to malloc in case: - Querying huge page size fails. - La

Re: [Qemu-devel] [PATCH V8 03/10] qapi script: remember line number in schema parsing

2014-02-27 Thread Eric Blake
On 02/27/2014 04:09 AM, Wenchao Xia wrote: > From: Wenchao Xia > > Before this patch, 'QAPISchemaError' scans whole input until 'pos' > to get error line number. After this patch, the scan is avoided since > line number is remembered in schema parsing. This patch also benefits > other error repor

[Qemu-devel] [PATCH RFC] kvm: ignore apic polarity

2014-02-27 Thread Michael S. Tsirkin
apic polarity in KVM does not work: too many things assume active high. Let's not pretend it works, let's just ignore polarity flag. If we ever want to emulate it exactly, this will need a feature flag anyway. Also report this to userspace: this makes it possible to report the interrupt active-lo

[Qemu-devel] [Bug 1285708] [NEW] FreeBSD Guest crash on boot due to xsave instruction issue

2014-02-27 Thread Jesse Pretorius
Public bug reported: When trying to boot a working FreeBSD 9.1/9.2 guest on a kvm/qemu host with the following command: kvm -m 256 -cdrom FreeBSD-9.2-RELEASE-amd64-disc1.iso -drive file=FreeBSD-9.2-RELEASE-amd64.qcow2,if=virtio -net nic,model=virtio -net user -nographic -vnc :10 -enable-kvm -ball

Re: [Qemu-devel] [Qemu-stable] [PATCH] rdma: bug fixes

2014-02-27 Thread Wahlstrom, Pelle
I think that's correct. It doesn't meet cold filter criteria. Pelle -Original Message- From: qemu-stable-bounces+pelle=netapp@nongnu.org [mailto:qemu-stable-bounces+pelle=netapp@nongnu.org] On Behalf Of Michael Roth Sent: Thursday, February 27, 2014 10:49 AM To: mrhi...@linux.vn

[Qemu-devel] [Bug 1285505] Re: [ppa 2.0~git-20140225] SIGABRT with -virtfs

2014-02-27 Thread Serge Hallyn
** Also affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1285505 Title: [ppa 2.0~git-20140225] SIGABRT with -virtfs Status in QEMU: New Sta

[Qemu-devel] [Bug 1285508] Re: [ppa 2.0~git-20140225] mouse cursor invisible with Ubuntu live system

2014-02-27 Thread Serge Hallyn
** Also affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1285508 Title: [ppa 2.0~git-20140225] mouse cursor invisible with Ubuntu live system

[Qemu-devel] [PULL 7/7] block/iscsi: fix segfault if writesame fails

2014-02-27 Thread Paolo Bonzini
From: Peter Lieven commit fa6252b0 introduced a segfault because it tries to read iTask.task->sense after iTask.task has been freed. Signed-off-by: Peter Lieven Signed-off-by: Paolo Bonzini --- block/iscsi.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a

[Qemu-devel] [PULL 6/7] scsi-disk: Add support for port WWN and index descriptors in VPD page 83h

2014-02-27 Thread Paolo Bonzini
From: Roland Dreier To make a VM more convincing to my application, it's useful to be able to add a port WWN and relative target port index to the descriptors returned for VPD page 83h. Add device properties to allow setting these, and return them from INQUIRY commands. Signed-off-by: Roland Dr

[Qemu-devel] [PULL 2/7] scsi: report thin provisioning errors with werror=report

2014-02-27 Thread Paolo Bonzini
SCSI defines a status code for when a thin-provisioned LUNs would exceed the allocated space, map ENOSPC to it. Reviewed-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini --- hw/scsi/scsi-bus.c | 5 + hw/scsi/scsi-disk.c| 3 +++ include/hw/scsi/scsi.h | 2 ++ 3 files changed, 10 inse

[Qemu-devel] [PULL 5/7] block/iscsi: query for supported VPD pages

2014-02-27 Thread Paolo Bonzini
From: Peter Lieven this patch ensures that we only query for block provisioning and block limits vpd pages if they are advertised. It also cleans up the inquiry code and eliminates some redundant code. Signed-off-by: Peter Lieven Signed-off-by: Paolo Bonzini --- block/iscsi.c | 107 ++

[Qemu-devel] [PULL 4/7] block/iscsi: fix deadlock on scsi check condition

2014-02-27 Thread Paolo Bonzini
From: Peter Lieven the retry logic was broken because the complete status of the task structure was not reset. this resulted in an infinite loop retrying the command over and over. CC: qemu-sta...@nongnu.org Signed-off-by: Peter Lieven Signed-off-by: Paolo Bonzini --- block/iscsi.c | 9 ++

[Qemu-devel] [PULL 1/7] scsi: Change scsi sense buf size to 252

2014-02-27 Thread Paolo Bonzini
From: Fam Zheng Current buffer size fails the assersion check in like hw/scsi/scsi-bus.c:1655:assert(req->sense_len <= sizeof(req->sense)); when backend (block/iscsi.c) returns more data then 96. Exercise the core dump path by booting an Gentoo ISO with scsi-generic device backed with

[Qemu-devel] [PULL 3/7] scsi-bus: Fix transfer length for VERIFY with BYTCHK=11b

2014-02-27 Thread Paolo Bonzini
From: Markus Armbruster The transfer length depends on field BYTCHK, which is encoded in byte 1, bits 1..2. However, the guard for for case BYTCHK=11b doesn't work, and we get case 01b instead. Fix it. Note that since emulated scsi-hd fails the command outright, it takes SCSI passthrough of a

[Qemu-devel] [PULL 0/7] SCSI patches for 2014-02-28

2014-02-27 Thread Paolo Bonzini
Anthony, Peter, The following changes since commit 6141f3bd6904df7cf9519c6444a14a608b9874c4: iotests: Mixed quorum child device specifications (2014-02-21 22:40:19 +0100) are available in the git repository at: git://github.com/bonzini/qemu.git scsi-next for you to fetch changes up to d973

Re: [Qemu-devel] best way to implement a "memclear" type instruction in TCG?

2014-02-27 Thread Peter Maydell
On 22 January 2014 19:06, Richard Henderson wrote: > On 01/22/2014 10:58 AM, Peter Maydell wrote: >> In theory we could just find the pointer to the memory QEMU is backing >> the guest RAM with and call memset on it... > > That's more or less what we do for the s390 insn XC. > See mem_helper.c, es

Re: [Qemu-devel] qemu-img convert cache mode for source

2014-02-27 Thread Peter Lieven
Am 27.02.2014 12:07, schrieb Kevin Wolf: > Am 27.02.2014 um 02:10 hat Fam Zheng geschrieben: >> On Wed, 02/26 16:41, Stefan Hajnoczi wrote: >>> On Wed, Feb 26, 2014 at 11:14:04AM +0100, Peter Lieven wrote: I was wondering if it would be a good idea to set the O_DIRECT mode for the source

Re: [Qemu-devel] [PULL 0/1] Lonely uq/master patch for 2014-02-24

2014-02-27 Thread Peter Maydell
On 25 February 2014 10:44, Paolo Bonzini wrote: > Anthony, Peter, > > The following changes since commit 7c08db30e6a43f7083a881eb07bfbc878e001e08: > > target-i386: Move KVM default-vendor hack to instance_init (2014-02-03 > 17:33:55 +0100) > > are available in the git repository at: > git://g

Re: [Qemu-devel] [Qemu-stable] [PATCH] rdma: bug fixes

2014-02-27 Thread Michael Roth
Quoting Wahlstrom, Pelle (2014-02-27 09:57:33) > I think that's correct. It doesn't meet cold filter criteria. Not sure I understand, what criteria are you referring to? > > Pelle > > -Original Message- > From: qemu-stable-bounces+pelle=netapp@nongnu.org > [mailto:qemu-stable-bounc

Re: [Qemu-devel] [PATCH V8 02/10] qapi script: add check for duplicated key

2014-02-27 Thread Eric Blake
On 02/27/2014 04:09 AM, Wenchao Xia wrote: > From: Wenchao Xia > > It is bad that same key was specified twice, especially when a union have s/have/has/ > two branches with same condition. This patch can prevent it. > > Signed-off-by: Wenchao Xia > Signed-off-by: Wenchao Xia Again, the doub

Re: [Qemu-devel] [PATCH v3 0/3] qapi: Allow modularization of QAPI schema files

2014-02-27 Thread Luiz Capitulino
On Tue, 11 Feb 2014 14:00:14 +0100 Lluís Vilanova wrote: > Adds the "include(...)" primitive to the syntax of QAPI schema files, allowing > these to be modularized into multiple per-topic files in the future. Markus, Eric, you commented/reviewed v2 of this series. Any comments against v3?

Re: [Qemu-devel] [Qemu-stable] [PATCH 1/3] target-i386: Fix CC_OP_CLR vs PF

2014-02-27 Thread Michael Roth
Quoting Richard Henderson (2014-02-25 01:30:30) > Parity should be set for a zero result. > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Richard Henderson Ping: last call for 1.7.1 (freeze today) > --- > target-i386/cc_helper.c | 2 +- > target-i386/translate.c | 2 +- > 2 files changed, 2 in

Re: [Qemu-devel] [Qemu-stable] [PULL 1/1] KVM: Use return value for error print

2014-02-27 Thread Michael Roth
Quoting Paolo Bonzini (2014-02-25 04:44:56) > From: Alexander Graf > > Commit 94ccff13 introduced a more verbose failure message and retry > operations on KVM VM creation. However, it ended up using a variable > for its failure message that hasn't been initialized yet. > > Fix it to use the valu

Re: [Qemu-devel] [PATCH 9/9] w32: Replace Windows specific data types in common header files

2014-02-27 Thread Stefan Hajnoczi
On Sun, Feb 23, 2014 at 06:02:15PM +0100, Stefan Weil wrote: > These header files are used by most QEMU source files. If they > depend on windows.h, all those source files do so, too. > > All Windows specific data types which are replaced use identical > definitions for the 32 and 64 bit Windows A

Re: [Qemu-devel] [PATCH] block/vmdk: do not report file offset for compressed extents

2014-02-27 Thread Stefan Hajnoczi
On Wed, Feb 26, 2014 at 10:47:57AM +0100, Peter Lieven wrote: > Signed-off-by: Peter Lieven > --- > block/vmdk.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan

Re: [Qemu-devel] [PATCH] rdma: bug fixes

2014-02-27 Thread Michael Roth
Quoting mrhi...@linux.vnet.ibm.com (2014-02-17 20:34:06) > From: "Michael R. Hines" > > 1. Fix small memory leak in parsing inet address from command line in > data_init() > 2. Fix ibv_post_send() return value check and pass error code back up > correctly. > 3. Fix rdma_destroy_qp() segfault af

Re: [Qemu-devel] [PATCH v4 0/3] acpi-test: issue errors instead of warnings when possible

2014-02-27 Thread Michael S. Tsirkin
On Thu, Feb 27, 2014 at 04:17:29PM +0200, Marcel Apfelbaum wrote: > v3->v4: > - Do not issue error on tables sync issues to not break git bisect > - Rebased on mst's pci branch. Partially reverted a patch > > v2->v3: > Addressed Michael S. Tsirkin's comments: > - got rid of a not n

Re: [Qemu-devel] Debugging aarch64 guest running on Foundationv8 model

2014-02-27 Thread Jani Kokkonen
Hi Xuebing, In that video the qemu seems use 32-bit ARM cpu model whereas I have need to use 64-bit ARM cpu model as I have specified by "-cpu host" qemu parameter in Foundationv8 model. -Jani 2014-02-27 14:21 GMT+01:00 Xuebing wang : > Hi Jani, > > Is below video similar to what you want? Thi

Re: [Qemu-devel] [PATCH v2] discard rbd error output when not relevant in qemu-iotests

2014-02-27 Thread Stefan Hajnoczi
On Wed, Jan 08, 2014 at 09:05:38PM +0100, Loic Dachary wrote: > Suppress rbd progress messages with --no-progress so they are not > confused with an error output when comparing test results ( progress is > displayed on stderr ). > > Signed-off-by: Loic Dachary > --- > tests/qemu-iotests/common.r

Re: [Qemu-devel] [PATCH] e1000: add the ability to select among several specific types of e1000, plus some pointers to documentations and details.

2014-02-27 Thread Stefan Hajnoczi
On Tue, Feb 25, 2014 at 10:24:30AM +0100, Romain Dolbeau wrote: > 2014-02-25 9:58 GMT+01:00 Romain Dolbeau : > > > 2014-02-25 9:01 GMT+01:00 Andreas Färber : > > > > > @@ -1572,6 +1572,9 @@ static const char * const pci_nic_models[] = { > >> > @@ -1584,6 +1587,9 @@ static const char * const pci_ni

Re: [Qemu-devel] [PULL 1/8] acpi-build: append description for non-hotplug

2014-02-27 Thread Michael S. Tsirkin
On Thu, Feb 27, 2014 at 09:57:10AM -0500, Gabriel L. Somlo wrote: > Michael, > > This seems to work great, on top of current master > (git://git.qemu-project.org/qemu.git). > > Did you want me to test how this interacts with any other stuff (i.e. > pull from your own git tree), or is this confirm

Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine

2014-02-27 Thread Marcel Apfelbaum
On Thu, 2014-02-27 at 15:59 +0100, Paolo Bonzini wrote: > Il 27/02/2014 15:39, Marcel Apfelbaum ha scritto: > >> > > >> > Each of them highlights one of the two aspects that, in my opinion, make > >> > QOM interesting (respectively, unification of interfaces and the > >> > containment tree). > > I

Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine

2014-02-27 Thread Paolo Bonzini
Il 27/02/2014 15:39, Marcel Apfelbaum ha scritto: > > Each of them highlights one of the two aspects that, in my opinion, make > QOM interesting (respectively, unification of interfaces and the > containment tree). I was planning to tackle the replacement of the machine from a container to an ac

Re: [Qemu-devel] [PULL 1/8] acpi-build: append description for non-hotplug

2014-02-27 Thread Gabriel L. Somlo
Michael, This seems to work great, on top of current master (git://git.qemu-project.org/qemu.git). Did you want me to test how this interacts with any other stuff (i.e. pull from your own git tree), or is this confirmation good enough ? Thanks again, --Gabriel On Thu, Feb 27, 2014 at 03:52:35PM

Re: [Qemu-devel] [snabb-devel] Re: Make virtio-net.c ring size configurable?

2014-02-27 Thread Michael S. Tsirkin
On Thu, Feb 27, 2014 at 03:17:44PM +0100, Stefan Hajnoczi wrote: > On Mon, Feb 24, 2014 at 05:14:04PM +0100, Luke Gorrie wrote: > > On 24 February 2014 16:20, Stefan Hajnoczi wrote: > > > > > Do you want the 1:1 mapping to achieve best performance or just to > > > simplify the coding? > > > > >

Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine

2014-02-27 Thread Marcel Apfelbaum
On Thu, 2014-02-27 at 11:41 +0100, Paolo Bonzini wrote: > Il 27/02/2014 11:34, Andreas Färber ha scritto: > > Am 20.02.2014 14:58, schrieb Paolo Bonzini: > >> Il 20/02/2014 14:50, Alexey Kardashevskiy ha scritto: > >>> From: Paolo Bonzini > >>> > >>> This is a first step towards QOMifying /machine

Re: [Qemu-devel] [PATCH v5 RESEND 0/4] qemu-img: add preallocation=full

2014-02-27 Thread Stefan Hajnoczi
On Tue, Feb 11, 2014 at 03:07:06PM +0800, Hu Tao wrote: > This series implements full image preallocation to create a non-sparse image > file at creation time, both for raw and qcow2 format. The purpose is to avoid > performance deterioration of the guest cause by sparse image. > > v5: > - fix w

[Qemu-devel] Debugging aarch64 guest running on Foundationv8 model

2014-02-27 Thread Jani Kokkonen
Hi, I would like to debug a Qemu guest linux kernel under Foundationv8 model and I tried the following setup: 1. Foundationv8 model started with --network=nat and --network-nat-ports=1234=1234 options 2. In Foundationv8 model I started qemu-system-aarch64 with the command line: ./qemu-system-a

  1   2   >