[Qemu-devel] [Bug 1248854] Re: The guest cannot boot up with parameter "-no-acpi"

2013-11-21 Thread chao zhou
** Changed in: qemu Status: Confirmed => Fix Committed ** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1248854 Title: The gues

[Qemu-devel] [Bug 1248854] Re: The guest cannot boot up with parameter "-no-acpi"

2013-11-21 Thread chao zhou
kvm.git + qemu.git: ede58222_5c5432e7 test on Romley_EP, Ivytown_EP, create guest with parameter "-no-acpi", the guest boot up fine. ** Changed in: qemu Status: New => Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [RFC PATCH v0 3/3] gluster: Add support for creating zero-filled image

2013-11-21 Thread Bharata B Rao
GlusterFS supports creation of zero-filled file on GlusterFS volume by means of an API called glfs_zerofill(). Use this API from QEMU to create an image that is filled with zeroes by using the preallocation option of qemu-img. qemu-img create gluster://server/volume/image -o preallocation=full 10G

[Qemu-devel] [RFC PATCH v0 2/3] gluster: Implement .bdrv_co_write_zeroes for gluster

2013-11-21 Thread Bharata B Rao
Support .bdrv_co_write_zeroes() from gluster driver by using GlusterFS API glfs_zerofill() that off-loads the writing of zeroes to GlusterFS server. Signed-off-by: Bharata B Rao --- block/gluster.c | 101 configure | 8 + 2 fil

[Qemu-devel] [RFC PATCH v0 1/3] gluster: Convert aio routines into coroutines

2013-11-21 Thread Bharata B Rao
Convert the read, write, flush and discard implementations from aio-based ones to coroutine based ones. Signed-off-by: Bharata B Rao --- block/gluster.c | 168 +--- 1 file changed, 63 insertions(+), 105 deletions(-) diff --git a/block/gluster.

[Qemu-devel] [RFC PATCH v0 0/3] gluster: conversion to coroutines and supporting write_zeroes

2013-11-21 Thread Bharata B Rao
Hi, This series is about converting all the bdrv_aio* implementations in gluster driver to coroutine based implementations. Read, write, flush and discard routines are converted. This also adds support for .bdrv_co_write_zeroes() in gluster and provides a new preallocation option with qemu-img (-

Re: [Qemu-devel] [PATCH V5 3/5] qemu-iotests: add 058 internal snapshot export with qemu-nbd case

2013-11-21 Thread Wenchao Xia
于 2013/11/19 19:29, Kevin Wolf 写道: Am 10.11.2013 um 23:03 hat Wenchao Xia geschrieben: Signed-off-by: Wenchao Xia --- tests/qemu-iotests/058 | 102 tests/qemu-iotests/058.out | 32 ++ tests/qemu-iotests/check |1 + tests

Re: [Qemu-devel] [PATCH for 1.7] .gitignore: Ignore config.status

2013-11-21 Thread Stefan Weil
Am 22.11.2013 07:39, schrieb Fam Zheng: > Signed-off-by: Fam Zheng > --- > .gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.gitignore b/.gitignore > index 5584b5f..1c9d63d 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -3,6 +3,7 @@ config-all-devices.* > config-all-disas.*

Re: [Qemu-devel] Buildbot failure: MinGW (was: qga/vss-win32/requester.h compile error)

2013-11-21 Thread Stefan Weil
Am 21.11.2013 09:40, schrieb Stefan Hajnoczi: > Excellent, thanks! The latest buildbot has compiled successfully: > http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/784 > > It's now hitting a make check failure unrelated to VSS. > > Thanks, > Stefan 'make check' for MinGW cross

[Qemu-devel] [PATCH] .gitignore: Ignore config.status

2013-11-21 Thread Fam Zheng
Signed-off-by: Fam Zheng --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 5584b5f..1c9d63d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ config-all-devices.* config-all-disas.* config-host.* config-target.* +config.status trace/genera

Re: [Qemu-devel] [RFC PATCH v3 0/2] Point-in-time snapshot exporting over NBD

2013-11-21 Thread Fam Zheng
On 2013年11月20日 10:32, Ian Main wrote: On Thu, Oct 17, 2013 at 01:36:41PM +0800, Fam Zheng wrote: This series adds for point-in-time snapshot NBD exporting based on blockdev-backup (variant of drive-backup with existing device as target). In general this seems to work great. I did a bunch of t

[Qemu-devel] [PATCH v4 5/7] block: Parse "backing" option to reference existing BDS

2013-11-21 Thread Fam Zheng
Signed-off-by: Fam Zheng --- block.c | 37 - include/block/block_int.h | 3 +++ 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c index 3bf4c8a..a5da656 100644 --- a/block.c +++ b/block.c @@ -1166,11 +1166,33 @

[Qemu-devel] [PATCH v4 7/7] block: Allow backup on referenced named BlockDriverState

2013-11-21 Thread Fam Zheng
Drive backup is a read only operation on source bs. We want to allow this specific case to enable image-fleecing. Note that when image-fleecing job starts, the job still add its blocker to source bs, and any other operation on it will be blocked by that. Signed-off-by: Fam Zheng --- block.c | 2

[Qemu-devel] [PATCH v4 4/7] block: Add checks of blocker in block operations

2013-11-21 Thread Fam Zheng
Before operate on a BlockDriverState, respective types are checked against bs->op_blockers and it will error out if there's a blocker. Signed-off-by: Fam Zheng --- blockdev-nbd.c | 4 blockdev.c | 25 + 2 files changed, 29 insertions(+) diff --git a/blockdev-nb

[Qemu-devel] [PATCH v4 6/7] qmp: add command 'blockdev-backup'

2013-11-21 Thread Fam Zheng
Similar to drive-backup, but this command uses a device id as target instead of creating/opening an image file. Also add blocker on target bs, since the target is also a named device now. Signed-off-by: Fam Zheng --- block/backup.c | 22 ++ blockdev.c | 46 ++

[Qemu-devel] [PATCH v4 3/7] block: Replace in_use with operation blocker

2013-11-21 Thread Fam Zheng
This drops BlockDriverState.in_use with op_blockers: - Call bdrv_op_block_all in place of bdrv_set_in_use(bs, 1). - Call bdrv_op_unblock_all in place of bdrv_set_in_use(bs, 0). - Check bdrv_op_is_blocked() in place of bdrv_in_use(bs). The specific types are used, e.g. in place of startin

[Qemu-devel] [PATCH v4 2/7] block: Introduce op_blockers to BlockDriverState

2013-11-21 Thread Fam Zheng
BlockDriverState.op_blockers is an array of list with BLOCK_OP_TYPE_MAX elements. Each list is a list of blockers of an operation type (BlockOpType), that marks this BDS is currently blocked for certain type of operation with reason errors stored in the list. The rule of usage is: * BDS user who

[Qemu-devel] [PATCH v4 0/7] Drop in_use from BlockDriverState and enable point-in-time snapshot exporting over NBD

2013-11-21 Thread Fam Zheng
This series adds for point-in-time snapshot NBD exporting based on blockdev-backup (variant of drive-backup with existing device as target). We get a thin point-in-time snapshot by COW mechanism of drive-backup, and export it through built in NBD server. The steps are as below: 1. (SHELL) qemu-i

[Qemu-devel] [PATCH v4 1/7] qapi: Add BlockOperationType enum

2013-11-21 Thread Fam Zheng
This adds the enum of all the operations that can be taken on a block device. Signed-off-by: Fam Zheng --- qapi-schema.json | 25 + 1 file changed, 25 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index 83fa485..4656e8c 100644 --- a/qapi-schema.json +++

[Qemu-devel] [PATCH V16 07/11] NUMA: expand MAX_NODES from 64 to 128

2013-11-21 Thread Wanlong Gao
libnuma choosed 128 for MAX_NODES, so we follow libnuma here. Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 291aa6a..807619e 100644 --- a/include/sysemu/sysemu.h +

[Qemu-devel] [PATCH V16 09/11] NUMA: set guest numa nodes memory policy

2013-11-21 Thread Wanlong Gao
Set the guest numa nodes memory policies using the mbind(2) system call node by node. After this patch, we are able to set guest nodes memory policies through the QEMU options, this arms to solve the guest cross nodes memory access performance issue. And as you all know, if PCI-passthrough is used,

[Qemu-devel] [PATCH] fixup

2013-11-21 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- hw/i386/pc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 50ed4cc..74c1f16 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1072,8 +1072,12 @@ PcGuestInfo *pc_guest_info_init(ram_addr_t below_4g_mem_s

[Qemu-devel] [PATCH V16 01/11] NUMA: move numa related code to new file numa.c

2013-11-21 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- Makefile.target | 2 +- cpus.c | 14 include/sysemu/cpus.h | 1 - include/sysemu/sysemu.h | 3 + numa.c | 182 vl.c| 139 +---

[Qemu-devel] [PATCH V16 11/11] NUMA: convert hmp command info_numa to use qmp command query_numa

2013-11-21 Thread Wanlong Gao
Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- hmp.c | 57 + hmp.h | 1 + monitor.c | 21 + 3 files changed, 59 insertions(+), 20 deletions(-) diff --git a/hmp.c b/hmp.c index 32ee285..d6dedd2 1006

Re: [Qemu-devel] [PATCH] fixup

2013-11-21 Thread Wanlong Gao
Sorry, please ignore this patch. Thanks, Wanlong Gao > Signed-off-by: Wanlong Gao > --- > hw/i386/pc.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/hw/i386/pc.c b/hw/i386/pc.c > index 50ed4cc..74c1f16 100644 > --- a/hw/i386/pc.c > +++ b/hw/i386/pc.c > @@ -10

[Qemu-devel] [PATCH V16 02/11] NUMA: check if the total numa memory size is equal to ram_size

2013-11-21 Thread Wanlong Gao
If the total number of the assigned numa nodes memory is not equal to the assigned ram size, it will write the wrong data to ACPI talb, then the guest will ignore the wrong ACPI table and recognize all memory to one node. It's buggy, we should check it to ensure that we write the right data to ACPI

[Qemu-devel] [PATCH V16 10/11] NUMA: add qmp command query-numa

2013-11-21 Thread Wanlong Gao
Add qmp command query-numa to show guest NUMA information. Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- numa.c | 66 qapi-schema.json | 36 +++ qmp-commands.hx | 49 +++

[Qemu-devel] [PATCH V16 04/11] NUMA: convert -numa option to use OptsVisitor

2013-11-21 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +- numa.c | 148 +++- qapi-schema.json| 30 ++ vl.c| 11 +++- 4 files changed, 114 insertions(+), 78 deletions(-) diff --git a/include/

[Qemu-devel] [PATCH V16 03/11] NUMA: Add numa_info structure to contain numa nodes info

2013-11-21 Thread Wanlong Gao
Add the numa_info structure to contain the numa nodes memory, VCPUs information and the future added numa nodes host memory policies. Reviewed-by: Eduardo Habkost Signed-off-by: Andre Przywara Signed-off-by: Wanlong Gao --- hw/i386/pc.c| 12 include/sysemu/sysemu.h |

[Qemu-devel] [PATCH V16 06/11] NUMA: add "-numa mem," options

2013-11-21 Thread Wanlong Gao
Add "-numa mem," option like following as Paolo suggested: -numa mem,nodeid=0,size=1G This new option will make later coming memory hotplug better. We will use the new options to specify nodes memory info, and just remain "-numa node,mem=xx" as legacy. Reviewed-by: Laszlo Ersek Signed-off-

[Qemu-devel] [PATCH V16 00/11] Add support for binding guest numa nodes to host numa nodes

2013-11-21 Thread Wanlong Gao
As you know, QEMU can't direct it's memory allocation now, this may cause guest cross node access performance regression. And, the worse thing is that if PCI-passthrough is used, direct-attached-device uses DMA transfer between device and qemu process. All pages of the guest will be pinned by get_u

[Qemu-devel] [PATCH V16 05/11] NUMA: introduce NumaMemOptions

2013-11-21 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- qapi-schema.json | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index db539b6..1043e57 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4223,7 +4223,8 @@ ## { 'union': 'NumaOption

[Qemu-devel] [PATCH V16 08/11] NUMA: parse guest numa nodes memory policy

2013-11-21 Thread Wanlong Gao
The memory policy setting format is like: policy={default|membind|interleave|preferred}[,relative=true],host-nodes=N-N And we are adding this setting as a suboption of "-numa mem,", the memory policy then can be set like following: -numa node,nodeid=0,cpus=0 \ -numa node,nodeid=1,cpus=1

[Qemu-devel] [PATCH] net: Update netdev peer on link change

2013-11-21 Thread Vlad Yasevich
When a link change occurs on a backend (like tap), we currently do not propage such change to the nic. As a result, when someone turns off a link on a tap device, for instance, then a guest doesn't see that change and continues to try to send traffic or run DHCP even though the lower-layer is disc

Re: [Qemu-devel] [PATCH RFC 0/3] add direct support of event in qapi schema

2013-11-21 Thread Wenchao Xia
于 2013/11/13 9:44, Wenchao Xia 写道: > This series add support for tag/keyword 'event' in qapi-schema. > The implemention doesn't generate a struture and visit function > in the background for every event, so it doesn't support nested > structure in the define to avoid trouble. > > It is on top of s

Re: [Qemu-devel] [PATCH V5 2/5] qemu-nbd: support internal snapshot export

2013-11-21 Thread Wenchao Xia
于 2013/11/19 19:26, Kevin Wolf 写道: Am 10.11.2013 um 23:03 hat Wenchao Xia geschrieben: Now it is possible to directly export an internal snapshot, which can be used to probe the snapshot's contents without qemu-img convert. Signed-off-by: Wenchao Xia --- block/snapshot.c | 18 +

Re: [Qemu-devel] [PATCH V5 1/5] snapshot: distinguish id and name in load_tmp

2013-11-21 Thread Wenchao Xia
于 2013/11/19 19:20, Kevin Wolf 写道: Am 10.11.2013 um 23:03 hat Wenchao Xia geschrieben: Since later this function will be used so improve it. The only caller of it now is qemu-img, and it is not impacted by introduce function bdrv_snapshot_load_tmp_by_id_or_name() that call bdrv_snapshot_load_tmp

Re: [Qemu-devel] Is there any new progress or plans about "ram live snapshot feature"?

2013-11-21 Thread Wenchao Xia
于 2013/11/21 19:02, Zhanghailiang 写道: Hi, Now qemu ram live snapshot feature has some problems, it is based on ‘ram live migration’. The time of snapshot depends on completion time of migration, which is not measurable. Also It may can’t achieve migrate in some situation. I have seen discussio

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-21 Thread Li Guang
Igor Mammedov wrote: On Thu, 21 Nov 2013 16:32:27 +0800 Li Guang wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:18:45PM +0800, Li Guang wrote: Hu Tao wrote: On Thu, Nov 21, 2013 at 09:14:18AM +0200, Michael S. Tsirkin wrote: On Thu, N

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-21 Thread Li Guang
Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:32:27PM +0800, Li Guang wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:18:45PM +0800, Li Guang wrote: Hu Tao wrote: On Thu, Nov 21, 2013 at 09:14:18AM +0200, Michael S. Tsirkin wrote: On

[Qemu-devel] [PULL 06/11] target-i386: Fix build by providing stub kvm_arch_get_supported_cpuid()

2013-11-21 Thread Paolo Bonzini
From: Peter Maydell Fix build failures with clang when KVM is not enabled by providing a stub version of kvm_arch_get_supported_cpuid(). We retain the compile time check that this function isn't called when CONFIG_KVM is not set by guarding the stub with ifndef __OPTIMIZE__ (we assume that an opt

[Qemu-devel] [PATCH] vfio-pci: Release all MSI-X vectors when disabled

2013-11-21 Thread Alex Williamson
We were relying on msix_unset_vector_notifiers() to release all the vectors when we disable MSI-X, but this only happens when MSI-X is still enabled on the device. Perform further cleanup by releasing any remaining vectors listed as in-use after this call. This caused a leak of IRQ routes on hotp

Re: [Qemu-devel] [qemu PATCH] hw/i386/pc_sysfw: support more than one flash drive

2013-11-21 Thread Laszlo Ersek
On 11/21/13 23:26, Eric Blake wrote: > On 11/21/2013 03:21 PM, Laszlo Ersek wrote: >> This patch allows the user to usefully specify >> >> -drive file=img_1,if=pflash,format=raw,readonly \ >> -drive file=img_2,if=pflash,format=raw >> >> on the command line. The flash images will be mapped under

Re: [Qemu-devel] [qemu PATCH] hw/i386/pc_sysfw: support more than one flash drive

2013-11-21 Thread Eric Blake
On 11/21/2013 03:21 PM, Laszlo Ersek wrote: > This patch allows the user to usefully specify > > -drive file=img_1,if=pflash,format=raw,readonly \ > -drive file=img_2,if=pflash,format=raw > > on the command line. The flash images will be mapped under 4G in their > reverse unit order -- that i

Re: [Qemu-devel] [PATCH for-1.7] Revert "e1000/rtl8139: update HMP NIC when every bit is written"

2013-11-21 Thread Michael S. Tsirkin
On Mon, Nov 18, 2013 at 04:32:34PM -0700, Alex Williamson wrote: > On Mon, 2013-11-18 at 17:55 -0500, Vlad Yasevich wrote: > > On 11/18/2013 05:40 PM, Alex Williamson wrote: > > > On Mon, 2013-11-18 at 17:07 -0500, Vlad Yasevich wrote: > > >> On 11/18/2013 04:33 PM, Alex Williamson wrote: > > >>> O

[Qemu-devel] [edk2 PATCH] OvmfPkg: split the variable store to a separate file

2013-11-21 Thread Laszlo Ersek
Split the variable store off to a separate file when SPLIT_VARSTORE is defined. Even in this case, the preexistent PCDs' values don't change. Qemu must take care of contiguously mapping NVVARSTORE.fd + OVMF.fd so that when concatenated they end exactly at 4GB. Contributed-under: TianoCore Contrib

[Qemu-devel] [qemu PATCH] hw/i386/pc_sysfw: support more than one flash drive

2013-11-21 Thread Laszlo Ersek
This patch allows the user to usefully specify -drive file=img_1,if=pflash,format=raw,readonly \ -drive file=img_2,if=pflash,format=raw on the command line. The flash images will be mapped under 4G in their reverse unit order -- that is, with their base addresses progressing downwards, in inc

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-21 Thread Igor Mammedov
On Thu, 21 Nov 2013 16:32:27 +0800 Li Guang wrote: > Michael S. Tsirkin wrote: > > On Thu, Nov 21, 2013 at 04:18:45PM +0800, Li Guang wrote: > > > >> Hu Tao wrote: > >> > >>> On Thu, Nov 21, 2013 at 09:14:18AM +0200, Michael S. Tsirkin wrote: > >>> > On Thu, Nov 21, 2013 at

Re: [Qemu-devel] [PATCH 00/27 RFC v7] ACPI memory hotplug

2013-11-21 Thread Michael S. Tsirkin
On Thu, Nov 21, 2013 at 02:39:10PM +0100, Igor Mammedov wrote: > On Thu, 21 Nov 2013 08:20:56 +0200 > "Michael S. Tsirkin" wrote: > > > On Thu, Nov 21, 2013 at 03:38:21AM +0100, Igor Mammedov wrote: > > > --- > > > What's new since v6: > > > > > > * DIMM device is split to backend and frontend.

Re: [Qemu-devel] [RFC PATCH 2/2] rtl8139: update HMP only when the address is fully written

2013-11-21 Thread Eric Blake
On 11/21/2013 01:04 PM, Vlad Yasevich wrote: > rtl8139 hardware requires 9346 config register to be set into > write mode before mac address can be changed even though it is > not documented. Every driver inspected so far appears to do > this along with comments that this is an undocumented requir

Re: [Qemu-devel] os x boot broken by commit 11948748495841bd54721b250d68c7b3cb0475ef

2013-11-21 Thread Gabriel L. Somlo
Added qemu-devel, since that is where this stuff belongs now. Everyone else, sorry for the dupe... On Thu, Nov 21, 2013 at 07:14:27PM +0100, Paolo Bonzini wrote: > Can you remind us about your DSDT modifications? It should be possible > to patch the HPET and applesmc bits appropriately from QEMU

Re: [Qemu-devel] [PATCH for-1.7 0/5] acpi unit-test: added tests

2013-11-21 Thread Erik Rull
Marcel Apfelbaum wrote: On Thu, 2013-11-21 at 22:20 +0100, Erik Rull wrote: Marcel Apfelbaum wrote: Added 2 tests: 1. Basic check of FACS table (missed on prev submission) 2. Compare DSDT and SSDT tables against expected values Test 2: - runs only if iasl is installed on the host mach

Re: [Qemu-devel] [PATCH for-1.7 0/5] acpi unit-test: added tests

2013-11-21 Thread Marcel Apfelbaum
On Thu, 2013-11-21 at 22:20 +0100, Erik Rull wrote: > Marcel Apfelbaum wrote: > > Added 2 tests: > > 1. Basic check of FACS table (missed on prev submission) > > 2. Compare DSDT and SSDT tables against expected values > > > > Test 2: > > - runs only if iasl is installed on the host machine. >

[Qemu-devel] [PULL 02/11] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0

2013-11-21 Thread Paolo Bonzini
From: Peter Maydell Our rules.mak adds '-rR' to MAKEFLAGS to indicate that we will be explicitly specifying everything and not relying on any default variables or rules. However we were accidentally relying on the default ARFLAGS ("rv"). This went unnoticed because of a bug in GNU Make 3.82 and e

[Qemu-devel] [PULL 04/11] atomic.h: Fix build with clang

2013-11-21 Thread Paolo Bonzini
From: Peter Maydell clang defines __ATOMIC_SEQ_CST but its implementation of the __atomic_exchange() builtin differs from that of gcc. Move the __clang__ branch of the ifdef ladder to the top and fix its implementation (there is no such builtin as __sync_exchange), so we can compile with clang ag

Re: [Qemu-devel] [PATCH for-1.7 0/5] acpi unit-test: added tests

2013-11-21 Thread Erik Rull
Marcel Apfelbaum wrote: Added 2 tests: 1. Basic check of FACS table (missed on prev submission) 2. Compare DSDT and SSDT tables against expected values Test 2: - runs only if iasl is installed on the host machine. - the test plan: 1. Dumps the ACPI tables as AML on the disk. 2. R

[Qemu-devel] [Bug 1253777] [NEW] OpenBSD VM running on OpenBSD host has sleep calls taking twice as long as they should

2013-11-21 Thread Martin van den Nieuwelaar
Public bug reported: Running a script like while [ 1 ] do date sleep 1 done on the VM will result in the (correct) date being displayed, but it is displayed only every two (!) seconds. We have also noticed that if we connect to the VM's console using VNC, and move the mouse pointer constant

Re: [Qemu-devel] [RFC PATCH 1/2] e1000: Use Address_Available bit as HW latch

2013-11-21 Thread Eric Blake
On 11/21/2013 01:04 PM, Vlad Yasevich wrote: > e1000 provides a E1000_RAH_AV bit on every complete write > to the Receive Address Register. We can use this bit > 2 ways: > 1) To trigger HMP notifications. When the bit is set the > mac address is fully set and we can update the HMP. > > 2)

Re: [Qemu-devel] [PATCHv2 3/6] ui/vnc: optimize dirty bitmap tracking

2013-11-21 Thread Eric Blake
On 11/21/2013 01:51 AM, Peter Lieven wrote: > vnc_update_client currently scans the dirty bitmap of each client > bitwise which is a very costly operation if only few bits are dirty. > vnc_refresh_server_surface does almost the same. > this patch optimizes both by utilizing the heavily optimized >

[Qemu-devel] [RFC PATCH 2/2] rtl8139: update HMP only when the address is fully written

2013-11-21 Thread Vlad Yasevich
rtl8139 hardware requires 9346 config register to be set into write mode before mac address can be changed even though it is not documented. Every driver inspected so far appears to do this along with comments that this is an undocumented requirement. We can use this to help us identify when the

Re: [Qemu-devel] [PATCH 0/3] [PULL for 1.7?] qemu-kvm.git uq/master queue

2013-11-21 Thread Stefan Weil
Am 21.11.2013 14:28, schrieb Gleb Natapov: > The following changes since commit fc8ead74674b7129e8f31c2595c76658e5622197: > > Merge remote-tracking branch 'qemu-kvm/uq/master' into staging (2013-10-18 > 10:03:24 -0700) > > are available in the git repository at: > > > git://git.kernel.org/pub/

Re: [Qemu-devel] [PATCH for-1.7 1/2] acpi-build: fix build on glib < 2.22

2013-11-21 Thread Paolo Bonzini
Il 21/11/2013 13:17, Michael S. Tsirkin ha scritto: > g_string_vprintf was only introduced in 2.24 so switch to vsnprintf > instead. A bit uglier but name size is fixed at 4 bytes here so it's > easy. > > Reported-by: Richard Henderson > Signed-off-by: Michael S. Tsirkin > --- > hw/i386/acpi-b

[Qemu-devel] [PATCH 2/3] pci-assign: Remove dead code for direct I/O region access from userspace

2013-11-21 Thread Gleb Natapov
From: Jan Kiszka This feature was already deprecated back then in qemu-kvm, ie. before pci-assign went upstream. assigned_dev_ioport_rw will never be invoked with resource_fd < 0. Signed-off-by: Jan Kiszka Acked-by: Alex Williamson Signed-off-by: Gleb Natapov --- hw/i386/kvm/pci-assign.c | 5

[Qemu-devel] [PATCH 0/3] [PULL] qemu-kvm.git uq/master queue

2013-11-21 Thread Gleb Natapov
The following changes since commit fc8ead74674b7129e8f31c2595c76658e5622197: Merge remote-tracking branch 'qemu-kvm/uq/master' into staging (2013-10-18 10:03:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master for you to fetch cha

Re: [Qemu-devel] [PATCH v3 0/6] Add cache mode option to qemu-iotests, and change default mode to "writeback"

2013-11-21 Thread Stefan Hajnoczi
On Wed, Nov 20, 2013 at 03:44:11PM +0800, Fam Zheng wrote: > This series adds cache mode option in the iotests framework. Test cases are > updated to make use of cache mode and mask supported modes. > > v3: Change _unsupported_qemu_io_options to _supported_cache_modes. > Change default mode to

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-21 Thread Igor Mammedov
On Thu, 21 Nov 2013 16:28:40 +0800 Hu Tao wrote: > On Thu, Nov 21, 2013 at 10:26:36AM +0200, Michael S. Tsirkin wrote: > > On Thu, Nov 21, 2013 at 04:12:22PM +0800, Hu Tao wrote: > > > On Thu, Nov 21, 2013 at 09:14:18AM +0200, Michael S. Tsirkin wrote: > > > > On Thu, Nov 21, 2013 at 03:38:37AM +

[Qemu-devel] [PATCH v3 for-1.7] s390x: fix flat file load on 32 bit systems

2013-11-21 Thread Michael S. Tsirkin
pc-bios/s390-zipl.rom is a flat image so it's expected that loading it as elf will fail. It should fall back on loading a flat file, but doesn't on 32 bit systems, instead it fails printing: qemu: hardware error: could not load bootloader 's390-zipl.rom' The result is boot failure. The reason

[Qemu-devel] [PATCH v2 for-1.7] s390x: fix flat file load on 32 bit systems

2013-11-21 Thread Michael S. Tsirkin
pc-bios/s390-zipl.rom is a flat image so it's expected that loading it as elf will fail. It should fall back on loading a flat file, but doesn't on 32 bit systems, instead it fails printing: qemu: hardware error: could not load bootloader 's390-zipl.rom' The result is boot failure. The reason

Re: [Qemu-devel] [PATCH for-1.7 2/2] acpi-build: fix build on glib < 2.14

2013-11-21 Thread Paolo Bonzini
Il 21/11/2013 13:17, Michael S. Tsirkin ha scritto: > g_array_get_element_size was only added in glib 2.14. > Fortunately we don't use it for any arrays where > element size is > 1, so just add an assert. > > Reported-by: Richard Henderson > Signed-off-by: Michael S. Tsirkin > --- > hw/i386/acp

[Qemu-devel] [PATCH 2/3] usb-host-libusb: Add alloc / free streams ops

2013-11-21 Thread Hans de Goede
Signed-off-by: Hans de Goede --- hw/usb/host-libusb.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c index 0dd60b2..894875b 100644 --- a/hw/usb/host-libusb.c +++ b/hw/usb/host-libusb.c @@ -1280,6

Re: [Qemu-devel] [PATCH v3 5/6] qemu-iotests: Force qcow2 in error path test in 048

2013-11-21 Thread Fam Zheng
On 2013年11月21日 20:41, Stefan Hajnoczi wrote: On Wed, Nov 20, 2013 at 03:44:16PM +0800, Fam Zheng wrote: The "raw" doesn't always work on certain file systems (e.g. tmpfs). Use qcow2 to make the allocation status explicit. Signed-off-by: Fam Zheng --- tests/qemu-iotests/048 | 8 +++- 1 f

Re: [Qemu-devel] [PATCH for-1.7] s390x: fix flat rom load on 32 bit systems

2013-11-21 Thread Alexander Graf
On 21.11.2013, at 13:24, Cornelia Huck wrote: > On Thu, 21 Nov 2013 14:08:22 +0200 > "Michael S. Tsirkin" wrote: > >> pc-bios/s390-zipl.rom is a flat image so it's expected that >> loading it as elf will fail. >> It should fall back on loading a flat file, but doesn't >> on 32 bit systems, ins

Re: [Qemu-devel] [PATCH 00/27 RFC v7] ACPI memory hotplug

2013-11-21 Thread Igor Mammedov
On Thu, 21 Nov 2013 08:20:56 +0200 "Michael S. Tsirkin" wrote: > On Thu, Nov 21, 2013 at 03:38:21AM +0100, Igor Mammedov wrote: > > --- > > What's new since v6: > > > > * DIMM device is split to backend and frontend. Therefore following > > command/options were added for supporting it: > > >

Re: [Qemu-devel] [PATCH for-1.7] s390x: fix flat rom load on 32 bit systems

2013-11-21 Thread Michael S. Tsirkin
On Thu, Nov 21, 2013 at 01:24:13PM +0100, Cornelia Huck wrote: > On Thu, 21 Nov 2013 14:08:22 +0200 > "Michael S. Tsirkin" wrote: > > > pc-bios/s390-zipl.rom is a flat image so it's expected that > > loading it as elf will fail. > > It should fall back on loading a flat file, but doesn't > > on 3

[Qemu-devel] [PATCH 1/3] KVM: x86: fix typo in KVM_GET_XCRS

2013-11-21 Thread Gleb Natapov
From: Paolo Bonzini Only the first item of the array was ever looked at. No practical effect, but still worth fixing. Signed-off-by: Paolo Bonzini Signed-off-by: Gleb Natapov --- target-i386/kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/kvm.c b/tar

Re: [Qemu-devel] [PATCH v3 5/6] qemu-iotests: Force qcow2 in error path test in 048

2013-11-21 Thread Stefan Hajnoczi
On Wed, Nov 20, 2013 at 03:44:16PM +0800, Fam Zheng wrote: > The "raw" doesn't always work on certain file systems (e.g. tmpfs). Use > qcow2 to make the allocation status explicit. > > Signed-off-by: Fam Zheng > --- > tests/qemu-iotests/048 | 8 +++- > 1 file changed, 7 insertions(+), 1 dele

[Qemu-devel] [PATCH for-1.7 5/5] acpi unit-test: compare DSDT and SSDT tables against expected values

2013-11-21 Thread Marcel Apfelbaum
This test will run only if iasl is installed on the host machine. The test plan: 1. Dumps the ACPI tables as AML on the disk. 2. Runs iasl to disassembly the tables into ASL files. 3. Compares them with expected offline ASL files. The test runs for both default machine and q35. In case the test

Re: [Qemu-devel] GIT master fails compilation for ACPI

2013-11-21 Thread Erik Rull
Hu Tao wrote: On Thu, Nov 21, 2013 at 09:06:43AM +0100, Erik Rull wrote: Hi all, when doing a git clone on the latest master, it fails compiling: CCx86_64-softmmu/memory_mapping.o CCx86_64-softmmu/dump.o CCx86_64-softmmu/xen-stub.o CCx86_64-softmmu/hw/i386/multiboot

[Qemu-devel] [RFC PATCH 1/2] e1000: Use Address_Available bit as HW latch

2013-11-21 Thread Vlad Yasevich
e1000 provides a E1000_RAH_AV bit on every complete write to the Receive Address Register. We can use this bit 2 ways: 1) To trigger HMP notifications. When the bit is set the mac address is fully set and we can update the HMP. 2) We can turn off he bit on the write to low order bits of

[Qemu-devel] [RFC PATCH 0/2] Update HMP only upon mac change completion.

2013-11-21 Thread Vlad Yasevich
Recent threads regarding e1000/rtl8139 and mac address change notifications prompted some research into the respecitive hw data sheets as well as available drivers. What I found is that each hw has a mechanism that can be used by our emulation layer to determine when the mac address change has com

Re: [Qemu-devel] [PATCH for-1.7] qdev-properties-system.c: Allow vlan or netdev for -device, not both

2013-11-21 Thread Paolo Bonzini
Il 21/11/2013 20:47, Vlad Yasevich ha scritto: > On 11/11/2013 02:50 AM, Paolo Bonzini wrote: >> Il 11/11/2013 06:18, Jason Wang ha scritto: >>> On 11/08/2013 10:13 AM, Vlad Yasevich wrote: It is currently possible to specify things like: -device e1000,netdev=foo,vlan=1 With this

Re: [Qemu-devel] [PATCH 1/2] block: Enable BDRV_O_SNAPSHOT with driver-specific options

2013-11-21 Thread Kevin Wolf
Am 21.11.2013 um 15:33 hat Stefan Hajnoczi geschrieben: > On Tue, Nov 19, 2013 at 04:37:27PM +0100, Kevin Wolf wrote: > > @@ -1114,6 +1093,24 @@ int bdrv_open(BlockDriverState *bs, const char > > *filename, QDict *options, > > goto fail; > > } > > > > +/* Prepare a

[Qemu-devel] [PULL 11/11] qga: Fix compiler warnings (missing format attribute, wrong format strings)

2013-11-21 Thread Paolo Bonzini
From: Stefan Weil gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra): CCqga/commands.o qga/commands.c: In function ‘slog’: qga/commands.c:28:5: error: function might be possible candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format] g_lo

[Qemu-devel] [PULL 01/11] sun4m: Add FCode ROM for TCX framebuffer

2013-11-21 Thread Paolo Bonzini
From: Mark Cave-Ayland Upstream OpenBIOS now implements SBus probing in order to determine the contents of a physical bus slot, which is required to allow OpenBIOS to identify the framebuffer without help from the fw_cfg interface. SBus probing works by detecting the presence of an FCode program

Re: [Qemu-devel] [PATCH for-1.7] qdev-properties-system.c: Allow vlan or netdev for -device, not both

2013-11-21 Thread Vlad Yasevich
On 11/11/2013 02:50 AM, Paolo Bonzini wrote: > Il 11/11/2013 06:18, Jason Wang ha scritto: >> On 11/08/2013 10:13 AM, Vlad Yasevich wrote: >>> It is currently possible to specify things like: >>> -device e1000,netdev=foo,vlan=1 >>> With this usage, whichever argument was specified last (vlan or

[Qemu-devel] [PATCH] seccomp: add kill() to the syscall whitelist

2013-11-21 Thread Paul Moore
The kill() syscall is triggered with the following command: # qemu -sandbox on -monitor stdio \ -device intel-hda -device hda-duplex -vnc :0 The resulting syslog/audit message: # ausearch -m SECCOMP time->Wed Nov 20 09:52:08 2013 type=SECCOMP msg=audit(1384912328.482:6656): aui

[Qemu-devel] [PATCH for-1.7 4/5] configure: added acpi unit-test files

2013-11-21 Thread Marcel Apfelbaum
Ensure configure will set-up links for the files if the build is created in other directory. Signed-off-by: Marcel Apfelbaum --- configure | 4 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 9addff1..127e287 100755 --- a/configure +++ b/configure @@ -4665,6 +4665,

[Qemu-devel] [PATCH for-1.7 1/5] acpi unit-test: load and check facs table

2013-11-21 Thread Marcel Apfelbaum
FACS table does not have a checksum, so we can check at least the signature (existence). Signed-off-by: Marcel Apfelbaum --- tests/acpi-test.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/tests/acpi-test.c b/tests/acpi-test.c index d6ff66f..43775cd 100644 --- a/tests/a

[Qemu-devel] [PATCH for-1.7 0/5] acpi unit-test: added tests

2013-11-21 Thread Marcel Apfelbaum
Added 2 tests: 1. Basic check of FACS table (missed on prev submission) 2. Compare DSDT and SSDT tables against expected values Test 2: - runs only if iasl is installed on the host machine. - the test plan: 1. Dumps the ACPI tables as AML on the disk. 2. Runs iasl to disassembly the tabl

[Qemu-devel] [PATCH for-1.7 2/5] acpi unit-test: adjust the test data structure for better handling

2013-11-21 Thread Marcel Apfelbaum
Ensure more then one instance of test_data may exist at a given time. It will help to compare different acpi table versions. Signed-off-by: Marcel Apfelbaum --- tests/acpi-test.c | 55 --- 1 file changed, 32 insertions(+), 23 deletions(-) diff

[Qemu-devel] [PATCH 3/6] qemu-option: Add qemu_config_parse_qdict()

2013-11-21 Thread Max Reitz
This function basically parses command-line options given as a QDict replacing a config file. For instance, the QDict {"section.opt1": 42, "section.opt2": 23} corresponds to the config file: [section] opt1 = 42 opt2 = 23 It is possible to specify multiple sections and also multiple sections of t

[Qemu-devel] [PATCH 6/6] blkverify: Don't require protocol filename

2013-11-21 Thread Max Reitz
If the filename is not prefixed by "blkverify:" in blkverify_parse_filename(), the blkverify driver was not selected through that protocol prefix, but by an explicit command line option (like file.driver=blkverify). Contrary to the current reaction, this is not really a problem; the whole filename

[Qemu-devel] [PATCH 0/6] blkdebug/blkverify: Allow command-line configuration

2013-11-21 Thread Max Reitz
Currently, the configuration of blkdebug and blkverify is done through the "filename" alone. There is now way of manually choosing blkdebug or blkverify as a driver and using a normal image filename. In the case of blkdebug, the filename starts with the protocol prefix, follows up with the name of

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.7.0-rc1 is now available

2013-11-21 Thread Anthony Liguori
Sorry for the delays around this release. I finally have proper internet access at home. I've updated the wiki and compressed the schedule for 1.7.0 should go out on Wednesday. I went through patches this morning and believe I have everything committed that was targeted for 1.7 (minus Paolo's pu

[Qemu-devel] [PULL for-1.7 00/11] Miscellaneous -rc patches

2013-11-21 Thread Paolo Bonzini
The following changes since commit 394cfa39ba24dd838ace1308ae24961243947fb8: Merge remote-tracking branch 'quintela/migration.next' into staging (2013-11-19 13:03:06 -0800) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-anthony for you to fetch changes

Re: [Qemu-devel] [PATCH 21/27] pc: add memory hotplug 440fx machine

2013-11-21 Thread Igor Mammedov
On Thu, 21 Nov 2013 15:13:12 +0100 Andreas Färber wrote: > Am 21.11.2013 06:48, schrieb Li Guang: > > Hi, Igor > > > > Igor Mammedov wrote: > >> Add DimmBus for memory hotplug below 4Gb or above 4Gb depending > >> on initial memory size and hotplug memory size. > >> > > ... > >> +static > >>

[Qemu-devel] [Bug 1253563] [NEW] bad performance with rng-egd backend

2013-11-21 Thread Launchpad Bug Tracker
You have been subscribed to a public bug by Amos Kong (amoskong): 1. create listen socket # cat /dev/random | nc -l localhost 1024 2. start vm with rng-egd backend ./x86_64-softmmu/qemu-system-x86_64 --enable-kvm -mon chardev=qmp,mode=control,pretty=on -chardev socket,id=qmp,host=localhost,po

[Qemu-devel] [PATCH] vl: verify if combination of cpus, sockets, cores and threads is sane

2013-11-21 Thread Peter Lieven
Signed-off-by: Peter Lieven --- vl.c | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/vl.c b/vl.c index 8d5d874..dc0b41a 100644 --- a/vl.c +++ b/vl.c @@ -1385,35 +1385,41 @@ static QemuOptsList qemu_smp_opts = { static void smp_parse(Qemu

Re: [Qemu-devel] [PATCH 1/2] block: Enable BDRV_O_SNAPSHOT with driver-specific options

2013-11-21 Thread Stefan Hajnoczi
On Tue, Nov 19, 2013 at 04:37:27PM +0100, Kevin Wolf wrote: > @@ -1114,6 +1093,24 @@ int bdrv_open(BlockDriverState *bs, const char > *filename, QDict *options, > goto fail; > } > > +/* Prepare a new options QDict for the temporary file, where user > + * opt

Re: [Qemu-devel] Buildbot failure: multiboot.o link error on OpenBSD current

2013-11-21 Thread Brad Smith
On 20/11/13 4:15 AM, Stefan Hajnoczi wrote: Sorry I forgot to CC qemu-devel on this: On Wed, Nov 20, 2013 at 10:06 AM, Stefan Hajnoczi wrote: Hi Brad, The QEMU buildbot is failing on brad_openbsd_current as follows: Building optionrom/multiboot.img ld: multiboot.o: relocation R_X86_64_16 c

  1   2   3   >