Re: [Qemu-devel] [PATCHv2 RFC] makefile: detect corrupted elf files

2013-05-21 Thread Stefan Weil
Am 22.05.2013 00:07, schrieb Michael S. Tsirkin: > Once in a while make gets killed and doesn't > clean up partial object files after it. > Result is nasty errors from link. > This hack checks object is well formed before linking, > and rebuilds it if not. > > Signed-off-by: Michael S. Tsirkin > -

[Qemu-devel] [Bug 1181796] Re: Qemu locks up when incoming serial fills up

2013-05-21 Thread Evan Green
The following patch gets things moving again for me. It only reports that the poll was satisfied if there was data that could be written to the destination. While it successfully opens up a window where the I/O thread is unlocked (previously there was no such window, hence the hang), it's far from

Re: [Qemu-devel] segfault in aio_bh_poll async.c:80 WAS: Re: kvm process disappears

2013-05-21 Thread Stefan Priebe - Profihost AG
Hi josh, hi Stefan, > Am 14.05.2013 17:05, schrieb Stefan Hajnoczi: >> On Tue, May 14, 2013 at 4:29 PM, Stefan Priebe - Profihost AG >> wrote: >>> Am 10.05.2013 13:09, schrieb Stefan Hajnoczi: On Fri, May 10, 2013 at 11:07 AM, Stefan Priebe - Profihost AG wrote: > Am 10.05.2013 09:

Re: [Qemu-devel] [PATCH v1 1/1] glib: Fix some misuses of gsize/size_t types

2013-05-21 Thread Edgar E. Iglesias
On Wed, May 22, 2013 at 02:03:05AM -0400, Paolo Bonzini wrote: > > > - Messaggio originale - > > Da: "peter crosthwaite" > > A: qemu-devel@nongnu.org > > Cc: pbonz...@redhat.com, aligu...@us.ibm.com, "edgar iglesias" > > > > Inviato: Mercoledì, 22 maggio 2013 5:01:43 > > Oggetto: [PATC

[Qemu-devel] [RFC PATCH v1 20/20] q35-mch: move ram initialization into q35-mch

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/i386/pc_q35.c | 7 ++- hw/pci-host/q35.c | 36 +++- include/hw/pci-host/q35.h | 9 +++-- 3 files changed, 40 insertions(+), 12 deletions(-) diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index a6d1eae..32c

Re: [Qemu-devel] [PATCH v2 1/1] qom/object: Don't poll cast cache for NULL objects

2013-05-21 Thread Edgar E. Iglesias
On Wed, May 22, 2013 at 11:19:16AM +1000, peter.crosthwa...@xilinx.com wrote: > From: Peter Crosthwaite > > object_dynamic_cast_assert used to be tolerant of NULL objects and not > assert. It's clear from the implementation that this is the expected > behavior. > > The preceding check of the cas

[Qemu-devel] [RFC PATCH v1 15/20] i440fx pmc: create pmc through comosition

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/pci-host/piix.c | 101 + 1 file changed, 64 insertions(+), 37 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 0030cad..1798060 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -10

[Qemu-devel] [RFC PATCH v1 10/20] piix3, ich9: create the HPET through composition

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/i386/pc.c| 22 +- hw/i386/pc_q35.c| 9 ++--- hw/isa/lpc_ich9.c | 28 hw/pci-host/piix.c | 30 ++ hw/timer/hpet.c | 2 +- include/hw/i386/ich9.h

Re: [Qemu-devel] [PATCH v2 1/1] qom/object: Don't poll cast cache for NULL objects

2013-05-21 Thread Paolo Bonzini
- Messaggio originale - > Da: "peter crosthwaite" > A: qemu-devel@nongnu.org > Cc: aligu...@us.ibm.com, "edgar iglesias" , > pbonz...@redhat.com, afaer...@suse.de > Inviato: Mercoledì, 22 maggio 2013 3:19:16 > Oggetto: [PATCH v2 1/1] qom/object: Don't poll cast cache for NULL objects >

Re: [Qemu-devel] [PATCH v1 1/1] glib: Fix some misuses of gsize/size_t types

2013-05-21 Thread Paolo Bonzini
- Messaggio originale - > Da: "peter crosthwaite" > A: qemu-devel@nongnu.org > Cc: pbonz...@redhat.com, aligu...@us.ibm.com, "edgar iglesias" > > Inviato: Mercoledì, 22 maggio 2013 5:01:43 > Oggetto: [PATCH v1 1/1] glib: Fix some misuses of gsize/size_t types > > From: Peter Crosthwai

[Qemu-devel] [RFC PATCH v1 18/20] q35-mch: create pci address space

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/i386/pc_q35.c | 13 - hw/pci-host/q35.c | 12 +++- include/hw/pci-host/q35.h | 1 + 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index 7673b8a..a6d1eae 100644 --- a/hw/i386/

Re: [Qemu-devel] [PATCH 2/4] acpi/gpe: expand bits of gpe register

2013-05-21 Thread li guang
在 2013-05-22三的 14:28 +0900,Isaku Yamahata写道: > Why? > And it breaks pointer operation like the fact is I can't guess why gpe->sts is defined uint8_t but the real hardware is 32-bit width. I expand it to 32 because the future usage for me will access bit beyond 8. of course, I can keep it, but I

[Qemu-devel] [RFC PATCH v1 08/20] rtc: remove rtc_set_date

2013-05-21 Thread Hu Tao
Since it's not defined and used anywhere. Cc: qemu-triv...@nongnu.org Signed-off-by: Hu Tao --- include/hw/timer/mc146818rtc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/hw/timer/mc146818rtc.h b/include/hw/timer/mc146818rtc.h index 753dda6..eaf6497 100644 --- a/include/hw/timer/m

[Qemu-devel] [RFC PATCH v1 07/20] piix3: create piix3 through composition.

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/pci-host/piix.c | 74 -- 1 file changed, 44 insertions(+), 30 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 021da6e..6796cb5 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -38

[Qemu-devel] [RFC PATCH v1 14/20] piix3, ich9: create pc speaker through composition

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/isa/lpc_ich9.c | 9 +++-- hw/pci-host/piix.c | 10 -- include/hw/i386/ich9.h | 1 + 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c index 42f60b9..a1927b2 100644 --- a/hw/isa/lpc_ich9.c +++

[Qemu-devel] [RFC PATCH v1 19/20] i440fx-pmc: move ram initialization into i440fx-pmc

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/i386/pc.c | 27 ++- hw/i386/pc_piix.c| 5 ++--- hw/pci-host/piix.c | 39 +++ include/hw/i386/pc.h | 6 ++ 4 files changed, 37 insertions(+), 40 deletions(-) diff --git a/hw/i386/pc.c b/h

[Qemu-devel] [RFC PATCH v1 12/20] piix3, ich9: create the RTC through composition

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/i386/pc.c | 8 +--- hw/i386/pc_piix.c | 6 +- hw/i386/pc_q35.c | 6 +- hw/isa/lpc_ich9.c | 15 +++ hw/pci-host/piix.c | 15 +++ hw/timer/mc146818rtc.c | 2 +- include/hw/i386/ich9.h | 1 + include

[Qemu-devel] [RFC PATCH v1 11/20] add rtc_set_irq

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/timer/mc146818rtc.c | 6 ++ include/hw/timer/mc146818rtc.h | 1 + 2 files changed, 7 insertions(+) diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c index 481604d..2fdae55 100644 --- a/hw/timer/mc146818rtc.c +++ b/hw/timer/mc146818rtc.c @@ -68

[Qemu-devel] [RFC PATCH v1 16/20] i440fx-pmc: calculate PCI memory hole directly

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/i386/pc_piix.c| 6 -- hw/pci-host/piix.c | 49 - include/hw/i386/pc.h | 4 3 files changed, 24 insertions(+), 35 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 80e29d2..79747fa 1

[Qemu-devel] [RFC PATCH v1 17/20] i440fx-pmc: create pci address space

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/i386/pc_piix.c| 33 +++-- hw/pci-host/piix.c | 16 +--- include/hw/i386/pc.h | 2 +- 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 79747fa..2120dc6 100644 --

[Qemu-devel] [RFC PATCH v1 13/20] piix3, ich9: create pit through composition

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/i386/pc.c | 16 +--- hw/isa/lpc_ich9.c| 30 ++ hw/pci-host/piix.c | 32 include/hw/i386/ich9.h | 1 + include/hw/timer/i8254.h | 3 +++ 5 files changed, 67 insertio

[Qemu-devel] [RFC PATCH v1 02/20] i440fx: rename i440FX to i440FX-PMC

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/pci-host/piix.c | 60 ++-- include/hw/i386/pc.h | 6 +++--- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 0176ae9..fc955bd 100644 --- a/hw/pci-host/pii

[Qemu-devel] [RFC PATCH v1 03/20] i440fx: rename i440FX-pcihost to i440FX

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/pci-host/piix.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index fc955bd..9c482ec 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -38,6 +38,10 @@ * http://download.in

[Qemu-devel] [RFC PATCH v1 04/20] i440fx: prepare for composition

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/pci-host/piix.c | 49 +++-- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 9c482ec..1c5c761 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -44,6 +4

[Qemu-devel] [RFC PATCH v1 06/20] piix3: prepare for composition

2013-05-21 Thread Hu Tao
Signed-off-by: Anthony Liguori Signed-off-by: Hu Tao --- hw/pci-host/piix.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index f96835b..021da6e 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix

[Qemu-devel] [RFC PATCH v1 09/20] ich9: function rename

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/isa/lpc_ich9.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c index 667e882..9e44758 100644 --- a/hw/isa/lpc_ich9.c +++ b/hw/isa/lpc_ich9.c @@ -524,7 +524,7 @@ static const MemoryRegionOps ich9_rst_c

[Qemu-devel] [RFC PATCH v1 05/20] piix3: make PIIX3-xen a subclass of PIIX3

2013-05-21 Thread Hu Tao
Signed-off-by: Anthony Liguori Signed-off-by: Hu Tao --- hw/pci-host/piix.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 1c5c761..f96835b 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -597,24 +597,14

[Qemu-devel] [RFC PATCH v1 01/20] i440fx: remove unused parameter i440fx_state of i440fx_init.

2013-05-21 Thread Hu Tao
Signed-off-by: Hu Tao --- hw/i386/pc_piix.c| 4 +--- hw/pci-host/piix.c | 10 -- include/hw/i386/pc.h | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 43ab480..8c9ea6f 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/

[Qemu-devel] [RFC PATCH v1 00/20] Refactor PC machine to take advantage of QOM

2013-05-21 Thread Hu Tao
This is a re-do of original series posted by Anthony Liguori at: http://lists.gnu.org/archive/html/qemu-devel/2012-01/msg03501.html I post this series because: 1. there are no news from Anthony since the first version for more than a year 2. Li Wanfeng di some work on the refactor last year, b

Re: [Qemu-devel] [PATCH 2/4] acpi/gpe: expand bits of gpe register

2013-05-21 Thread Isaku Yamahata
Why? And it breaks pointer operation like > cur = ar->gpe.sts + addr; thanks, On Wed, May 22, 2013 at 11:46:35AM +0800, liguang wrote: > Signed-off-by: liguang > --- > hw/acpi/core.c |8 > hw/acpi/ich9.c |2 +- > hw/acpi/piix4.c|2 +- > inc

[Qemu-devel] [PATCH] kvm: add detail error message when fail to add ioeventfd

2013-05-21 Thread Amos Kong
I try to hotplug 28 * 8 multiple-function devices to guest with old host kernel, ioeventfds in host kernel will be exhausted, then qemu fails to allocate ioeventfds for blk/nic devices. It's better to add detail error here. Signed-off-by: Amos Kong --- kvm-all.c |4 1 files changed, 4

[Qemu-devel] [PATCH 3/4] ich9: add notifer for ec to generate sci

2013-05-21 Thread liguang
Signed-off-by: liguang --- hw/acpi/ich9.c | 15 +++ include/hw/acpi/ich9.h |1 + 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 582dbec..2ecde32 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -33,6 +33,7 @@ #in

[Qemu-devel] [PATCH 4/4][seabios] ec: add ASL for ACPI Embedded Controller

2013-05-21 Thread liguang
Signed-off-by: liguang --- src/acpi-dsdt.dsl |1 + src/ec.dsl| 51 + src/q35-acpi-dsdt.dsl |1 + 3 files changed, 53 insertions(+), 0 deletions(-) create mode 100644 src/ec.dsl diff --git a/src/acpi-dsdt.dsl b/src/acpi-ds

[Qemu-devel] [PATCH 0/4] add ACPI Embedded Controller

2013-05-21 Thread liguang
These patches try to add ACPI Embedded Controller (EC), refer-to: ACPI SPEC v5 chapter 5 "ACPI Embedded Controller Interface Specification" EC is a standard ACPI device, it plays flexible roles, e.g. power controller, it can control power sequence for platform to enter or leave system state(0,1,

[Qemu-devel] [PATCH 1/4] acpi: add ACPI Embedded Controller support

2013-05-21 Thread liguang
this work implemented Embedded Controller chip emulation which was defined at ACPI SEPC v5 chapter 12: "ACPI Embedded Controller Interface Specification" commonly Embedded Controller will emulate keyboard, mouse, handle ACPI defined operations and some low-speed devices like SMbus. Signed-off-by:

[Qemu-devel] [PATCH 2/4] acpi/gpe: expand bits of gpe register

2013-05-21 Thread liguang
Signed-off-by: liguang --- hw/acpi/core.c |8 hw/acpi/ich9.c |2 +- hw/acpi/piix4.c|2 +- include/hw/acpi/acpi.h |4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/acpi/core.c b/hw/acpi/core.c index 42eeace..38ddeb8 100644 -

Re: [Qemu-devel] VFIO VGA test branches

2013-05-21 Thread Justin Gottula
On Sun, May 19, 2013 at 8:44 PM, Alex Williamson wrote: > Also, be sure you're using the correct branch to get > the PCI bus reset code. You can verify with something like: > > grep VFIO_DEVICE_PCI_BUS_RESET qemu.git/hw/misc/vfio.c > grep VFIO_DEVICE_PCI_BUS_RESET linux.git/drivers/vfio/pci/vfio

[Qemu-devel] [Bug 1182490] Re: [qemu-1.5] coroutine-win32.c broken on NULL pointer

2013-05-21 Thread Cauchy Song
git bisect start git bisect bad HEAD git bisect good v1.4.0 fde245ca7ea790495db370cd260259595dbdf874bad NULL pointer a4960ef34829c355fdf25b8ee6b869c92393e366bad ld: undefined reference b5a73f8d8a57e940f9bbeb399a9e47897522ee9abad Kernel panic - not syncing: No

[Qemu-devel] [PATCH v4 07/10] curl: make use of CURLDataCache.

2013-05-21 Thread Fam Zheng
Make subsequecial changes to make use of introduced CURLDataCache. Moved acb struct from CURLState to BDRVCURLState, and changed to list. Signed-off-by: Fam Zheng --- block/curl.c | 168 --- 1 file changed, 90 insertions(+), 78 deletions(-)

[Qemu-devel] [PATCH v4 10/10] curl: introduce ssl_no_cert runtime option.

2013-05-21 Thread Fam Zheng
Added an option to let curl disable ssl certificate check. Signed-off-by: Fam Zheng --- block/curl.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/block/curl.c b/block/curl.c index 5adbc84..b6cc5a0 100644 --- a/block/curl.c +++ b/block/curl.c @@ -95,6 +95,8 @@

[Qemu-devel] [PATCH v4 08/10] curl: use list to store CURLState

2013-05-21 Thread Fam Zheng
Make it consistent to other structures to use QLIST to store CURLState. It also simplifies initialization and releasing of data. Signed-off-by: Fam Zheng --- block/curl.c | 96 1 file changed, 51 insertions(+), 45 deletions(-) diff --

[Qemu-devel] [PATCH v4 06/10] curl: introduce CURLDataCache

2013-05-21 Thread Fam Zheng
Data buffer was contained by CURLState, they are allocated and freed together. This patch try to isolate them, by introducing a dedicated cache list to BDRVCURLState. The benifit is we can now release the CURLState (and associated sockets) while keep the fetched data for later use, and simplies the

[Qemu-devel] [PATCH v4 09/10] curl: add cache quota.

2013-05-21 Thread Fam Zheng
Introduce a cache quota: BDRVCURLState.cache_quota. When adding new CURLDataCache to BDRVCURLState, if number of existing CURLDataCache is larger than CURL_CACHE_QUOTA, try to release some first to limit the in memory cache size. A least used entry is selected for releasing. Signed-off-by: Fam Zh

[Qemu-devel] [PATCH v4 01/10] curl: introduce CURLSockInfo to BDRVCURLState.

2013-05-21 Thread Fam Zheng
We use socket provided by curl in the driver. Libcurl multi interface has option CURLMOPT_SOCKETFUNCTION for socket. Per man 3 curl_multi_setopt: ... CURLMOPT_SOCKETFUNCTION Pass a pointer to a function matching the curl_socket_callback prototype. The curl_multi_socket_action(3)

[Qemu-devel] [PATCH v4 03/10] curl: change curl_multi_do to curl_fd_handler

2013-05-21 Thread Fam Zheng
The driver calls curl_multi_do to take action at several points, while it's also registered as socket fd handler. This patch removes internal call of curl_multi_do because they are not necessary when handler can be called by socket data update. Since curl_multi_do becomes a pure fd handler, the fu

[Qemu-devel] [PATCH v4 05/10] curl: add timer to BDRVCURLState

2013-05-21 Thread Fam Zheng
libcurl uses timer to manage ongoing sockets, it needs us to supply timer. This patch introduce QEMUTimer to BDRVCURLState and handles timeouts as libcurl expects (curl_multi_timer_cb sets given timeout value on the timer and curl_timer_cb calls curl_multi_socket_action on triggered). Signed-off-b

[Qemu-devel] [PATCH v4 04/10] curl: fix curl_open

2013-05-21 Thread Fam Zheng
Change curl_size_cb to curl_header_cb, as what the function is really doing. Fix the registering, CURLOPT_WRITEFUNCTION is apparently wrong, should be CURLOPT_HEADERFUNCTION. Parsing size from header is not necessary as we're using curl_easy_getinfo(state->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD

[Qemu-devel] [PATCH v4 02/10] curl: change magic number to sizeof

2013-05-21 Thread Fam Zheng
String field length is duplicated in two places. Make it a sizeof. Signed-off-by: Fam Zheng --- block/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/curl.c b/block/curl.c index 2e42cd1..d0bc66f 100644 --- a/block/curl.c +++ b/block/curl.c @@ -569,7 +569,7 @@ sta

[Qemu-devel] [PATCH v4 00/10] curl: fix curl read

2013-05-21 Thread Fam Zheng
CURL library API has changed, the current curl driver is not working. This patch rewrites the use of API as well as the structure of internal states. BDRVCURLState holds the pointer to curl multi interface (man 3 libcurl-multi), and 4 lists for internal states: - CURLState holds state for libcur

[Qemu-devel] [PATCH v1 1/1] glib: Fix some misuses of gsize/size_t types

2013-05-21 Thread peter . crosthwaite
From: Peter Crosthwaite This unbreaks cross compile builds: configure --target-list="i386-softmmu" --cpu=i386 When building on a 64bit machine. Reported-by: David Holsgrove Signed-off-by: Peter Crosthwaite --- hw/nvram/fw_cfg.c | 4 ++-- qemu-char.c | 2 +- 2 files changed, 3 inserti

Re: [Qemu-devel] [PATCH v3 00/10] curl: fix curl read

2013-05-21 Thread Fam Zheng
On Tue, 05/21 08:39, Richard W.M. Jones wrote: > On Tue, May 21, 2013 at 09:54:15AM +0800, Fam Zheng wrote: > > On Mon, 05/20 09:49, Richard W.M. Jones wrote: > > > On Mon, May 20, 2013 at 09:41:06AM +0100, Richard W.M. Jones wrote: > > > > On Mon, May 20, 2013 at 03:03:34PM +0800, Fam Zheng wrote:

[Qemu-devel] [Bug 1182716] [NEW] guest cannot boot up when Intel 82572 NIC assigned

2013-05-21 Thread Yongjie Ren
Public bug reported: Environment: Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):linux kvm.git next branch Commit:660696d1d16a71e15549ce1bf74953be1592bcd3 qemu-kvm.git uq/master branch Commit:9953f8822cc316eec9962f0a2858c3439a80adec Host

[Qemu-devel] [Bug 1182716] Re: guest cannot boot up when Intel 82572 NIC assigned

2013-05-21 Thread Yongjie Ren
the output of 'dmesg' and 'lspci' command in host is attached as above. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1182716 Title: guest cannot boot up when Intel 82572 NIC assigned Status in QE

[Qemu-devel] [Bug 1182716] Re: guest cannot boot up when Intel 82572 NIC assigned

2013-05-21 Thread Yongjie Ren
** Attachment added: "dmesg-in-host" https://bugs.launchpad.net/qemu/+bug/1182716/+attachment/3683493/+files/host-dmesg.log -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1182716 Title: guest ca

[Qemu-devel] [Bug 1182716] Re: guest cannot boot up when Intel 82572 NIC assigned

2013-05-21 Thread Yongjie Ren
** Attachment added: "lspci-in-host" https://bugs.launchpad.net/qemu/+bug/1182716/+attachment/3683492/+files/lspci.log -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1182716 Title: guest cannot

Re: [Qemu-devel] [PATCH 00/30] Introduction of IOMMUs into the memory API

2013-05-21 Thread Alexey Kardashevskiy
On 05/21/2013 08:57 PM, Paolo Bonzini wrote: > This is part 1 of the memory API updates for 1.6. (Part 2 is the > introduction of get/set_owner, part 3 is the introduction of the > RCU-style flatview). > > Compared to the first submissions, there are a few extra cleanup > patches, and address_spa

Re: [Qemu-devel] [PATCH 7/7] block: dump to monitor for bdrv_snapshot_dump() and bdrv_image_info_dump()

2013-05-21 Thread Wenchao Xia
于 2013-5-20 10:39, Wenchao Xia 写道: > 于 2013-5-17 20:30, Luiz Capitulino 写道: >> On Fri, 17 May 2013 11:30:31 +0800 >> Wenchao Xia wrote: >> >>> 于 2013-5-16 20:17, Luiz Capitulino 写道: On Thu, 16 May 2013 10:22:09 +0800 Wenchao Xia wrote: > 于 2013-5-15 20:28, Luiz Capitulino 写道: >

[Qemu-devel] [PATCH v1 1/1] configure: Probe for libfdt_env.h

2013-05-21 Thread peter . crosthwaite
From: Peter Crosthwaite Currently QEMU provides a local clone of the file libfdt_env.h in /include. This file is supposed to come with the libfdt package and is only needed for broken installs of libfdt. Unfortunately, libfdt 1.3 stable is tagged with this bug so we cant realistically remove the

Re: [Qemu-devel] [PATCH] Fix usage of USB_DEV_FLAG_IS_HOST flag.

2013-05-21 Thread Michael Marineau
On Mon, May 13, 2013 at 11:51 AM, Gerd Hoffmann wrote: > On 05/13/13 01:19, Michael Marineau wrote: > > USB_DEV_FLAG_IS_HOST is the bit number, not value. Booting with a > > "Fitbit Base Station" USB dongle was triggering this assert. > > > > Signed-off-by: Michael Marineau > > --- > > hw/usb/c

Re: [Qemu-devel] [PATCH] Fix mask of pte index

2013-05-21 Thread Qiao Nuohan
On 05/22/2013 09:21 AM, Qiao Nuohan wrote: Function walk_pte needs pte index to calculate virtual address. However, pte index of PAE paging or IA-32e paging is 9 bit, so the mask should be 0x1ff. Signed-off-by: Qiao Nuohan Reviewed by: Jesse Larrew --- target-i386/arch_memory_mapping.c | 2

[Qemu-devel] [PATCH v2 1/1] qom/object: Don't poll cast cache for NULL objects

2013-05-21 Thread peter . crosthwaite
From: Peter Crosthwaite object_dynamic_cast_assert used to be tolerant of NULL objects and not assert. It's clear from the implementation that this is the expected behavior. The preceding check of the cast cache dereferences obj however causing a segfault. Fix by conditionalizing the cast cache

Re: [Qemu-devel] [PATCH] Fix mask of pte index

2013-05-21 Thread Qiao Nuohan
Function walk_pte needs pte index to calculate virtual address. However, pte index of PAE paging or IA-32e paging is 9 bit, so the mask should be 0x1ff. Signed-off-by: Qiao Nuohan --- target-i386/arch_memory_mapping.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tar

Re: [Qemu-devel] [PATCH 1/2 V4] virtio-spec: dynamic network offloads configuration

2013-05-21 Thread Rusty Russell
"Michael S. Tsirkin" writes: > On Mon, May 20, 2013 at 03:43:51PM +0200, Paolo Bonzini wrote: >> Is there a story behind skipping virtio-net feature bits 2..4? >> >> Paolo > > Bits 3-4 now :) > I'm curious too. Not a good one :) The year is 2007. virtio_net was the posterchild of free expressi

[Qemu-devel] [PATCH] wdt_i6300esb: fix vmstate versioning

2013-05-21 Thread Michael Roth
When this VMSD was introduced it's version fields were set to sizeof(I6300State), making them essentially random from build to build, version to version. To fix this, we lock in a high version id and low minimum version id to support old->new migration from all prior versions of this device's stat

Re: [Qemu-devel] (Another) 1.4.1 -> 1.5.0 migration failure

2013-05-21 Thread mdroth
On Tue, May 21, 2013 at 10:16:48PM +0100, Peter Maydell wrote: > On 21 May 2013 21:43, mdroth wrote: > > Makes sense, but apparently version IDs for incoming device state are > > not allowed to exceed the destination's version, so we can't bump it > > beyond the value in 1.5 without breaking migra

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 11:01:05PM +0100, Peter Maydell wrote: > On 21 May 2013 22:46, Michael S. Tsirkin wrote: > > Once in a while make gets killed and doesn't > > clean up partial object files after it. > > Result is nasty errors from link. > > This hack checks object is well formed before link

[Qemu-devel] [PATCHv2 RFC] makefile: detect corrupted elf files

2013-05-21 Thread Michael S. Tsirkin
Once in a while make gets killed and doesn't clean up partial object files after it. Result is nasty errors from link. This hack checks object is well formed before linking, and rebuilds it if not. Signed-off-by: Michael S. Tsirkin --- v1 actually prints some noise on stderr, this shuts it up.

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-21 Thread Peter Maydell
On 21 May 2013 22:46, Michael S. Tsirkin wrote: > Once in a while make gets killed and doesn't > clean up partial object files after it. > Result is nasty errors from link. > This hack checks object is well formed before linking, > and rebuilds it if not. > > Signed-off-by: Michael S. Tsirkin > -

[Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-21 Thread Michael S. Tsirkin
Once in a while make gets killed and doesn't clean up partial object files after it. Result is nasty errors from link. This hack checks object is well formed before linking, and rebuilds it if not. Signed-off-by: Michael S. Tsirkin --- Is below useful for others? Makefile.target | 7 +++ 1

Re: [Qemu-devel] (Another) 1.4.1 -> 1.5.0 migration failure

2013-05-21 Thread Peter Maydell
On 21 May 2013 21:43, mdroth wrote: > Makes sense, but apparently version IDs for incoming device state are > not allowed to exceed the destination's version, so we can't bump it > beyond the value in 1.5 without breaking migration from 1.5+ -> 1.5 We care about backwards migration? That sounds l

Re: [Qemu-devel] [RFC PATCH v3 06/11] qemu-ga: Add Windows VSS requester to quisce applications and filesystems

2013-05-21 Thread Tomoki Sekiyama
On 5/21/13 12:56 , "Eric Blake" wrote: >On 05/21/2013 09:33 AM, Tomoki Sekiyama wrote: >> Add VSS requester functions for to qemu-ga. >> This provides facility to request VSS service in Windows guest to quisce > >s/quisce/quiesce/ Oops, thanks again. >> applications and filesystems. This functi

Re: [Qemu-devel] [RFC PATCH v3 04/11] qemu-ga: Add an configure option to specify path to Windows VSS SDK

2013-05-21 Thread Tomoki Sekiyama
On 5/21/13 12:53 , "Eric Blake" wrote: >On 05/21/2013 09:33 AM, Tomoki Sekiyama wrote: >> To enable VSS support in qemu-ga for Windows, header files included in >> VSS SDK is required. >> The VSS support is enabled when the option like below: >> ./configure --with-vss-sdk="/pass/to/VSS SDK" >>

Re: [Qemu-devel] [RFC PATCH v3 01/11] configure: Support configuring c++ compiler

2013-05-21 Thread Tomoki Sekiyama
Hi Eric, Thank you for the review. On 5/21/13 12:42 , "Eric Blake" wrote: >On 05/21/2013 09:33 AM, Tomoki Sekiyama wrote: >> Add configuration for c++ compiler (${corss_prefix}g++ as default) in > >s/corss/cross/ Oops, I'll fix this in next version... (with a fix for logic to configure c++ com

Re: [Qemu-devel] [RFC PATCH v3 03/11] Add a script to extract VSS SDK headers on POSIX system

2013-05-21 Thread Tomoki Sekiyama
On 5/21/13 12:48 , "Eric Blake" wrote: >On 05/21/2013 09:33 AM, Tomoki Sekiyama wrote: >> VSS SDK(*) setup.exe is only runnable on Windows. This adds a script >> to extract VSS SDK headers on POSIX-systems using msitools. >> >> * http://www.microsoft.com/en-us/download/details.aspx?id=23490 >>

Re: [Qemu-devel] [RFC PATCH v3 01/11] configure: Support configuring c++ compiler

2013-05-21 Thread Tomoki Sekiyama
Hi Peter, On 5/21/13 12:56 , "Peter Maydell" wrote: >On 21 May 2013 16:33, Tomoki Sekiyama wrote: >> Add configuration for c++ compiler (${corss_prefix}g++ as default) in >> configure and Makefiles. > >I think you should follow the same logic we use for picking >the C compiler, so that we use '

Re: [Qemu-devel] (Another) 1.4.1 -> 1.5.0 migration failure

2013-05-21 Thread mdroth
On Tue, May 21, 2013 at 06:50:23PM +0100, Peter Maydell wrote: > On 21 May 2013 18:26, mdroth wrote: > > static const VMStateDescription vmstate_i6300esb = { > > .name = "i6300esb_wdt", > > .version_id = sizeof(I6300State), > > .minimum_version_id = sizeof(I6300State), > > .minimum

Re: [Qemu-devel] [libvirt] [qemu-devel] Default machine type setting for ppc64

2013-05-21 Thread Anthony Liguori
"Daniel P. Berrange" writes: > On Tue, May 21, 2013 at 11:12:26AM -0600, Eric Blake wrote: >> I have also argued in the past that it would be useful for libvirt to >> support the idea of a template, where you can specify a domain XML that >> inherits defaults from the template. We've already don

[Qemu-devel] 'qemu-nbd' explicit flush

2013-05-21 Thread Mark Trumpold
Hello all, I am using ‘qemu-nbd’ and ‘qemu-img’ from the command line to provide ‘qcow2’ loop filesystems. For performance, I have '--cache=writeback' set for the qemu-nbd device. I am having trouble flushing all caches to disk at will; specifically before snapshotting the underlying filesyst

Re: [Qemu-devel] KVM call agenda for 2013-05-21

2013-05-21 Thread Anthony Liguori
"Michael S. Tsirkin" writes: > On Tue, May 21, 2013 at 09:29:07AM -0500, Anthony Liguori wrote: >> "Michael S. Tsirkin" writes: >> >> > On Tue, May 21, 2013 at 07:18:58AM -0500, Anthony Liguori wrote: >> >> "Michael S. Tsirkin" writes: >> >> >> >> > On Mon, May 20, 2013 at 12:57:47PM +0200, J

Re: [Qemu-devel] [Bug 1180970] Re: qemu: fatal: Trying to execute code outside RAM or ROM; worked in 1.4.0, fails in 1.4.92

2013-05-21 Thread Duane Voth
Ok, somehow the firewall was messed up - it works now. :/ 4a6fd938f5457ee161d2acbd9364608a2a68b7a1 is the first bad commit commit 4a6fd938f5457ee161d2acbd9364608a2a68b7a1 Author: Richard Henderson Date: Thu Jan 10 13:29:23 2013 -0800 target-i386: Tidy prefix parsing Avoid duplicati

Re: [Qemu-devel] Could configure generate QEMU's linker scripts?

2013-05-21 Thread Richard Henderson
On 05/21/2013 10:51 AM, Ed Maste wrote: > On 20 May 2013 13:21, Richard Henderson wrote: >> In general I believe that using the -Ttext-segment ADDR flag for ld >> would completely obviate the need for even editing the link script. > > That sounds cleaner, although there's a wrinkle for FreeBSD.

Re: [Qemu-devel] KVM call agenda for 2013-05-21

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 09:29:07AM -0500, Anthony Liguori wrote: > "Michael S. Tsirkin" writes: > > > On Tue, May 21, 2013 at 07:18:58AM -0500, Anthony Liguori wrote: > >> "Michael S. Tsirkin" writes: > >> > >> > On Mon, May 20, 2013 at 12:57:47PM +0200, Juan Quintela wrote: > >> >> > >> >> Hi

Re: [Qemu-devel] KVM call agenda for 2013-05-21

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 06:40:18PM +0200, Andreas Färber wrote: > Am 21.05.2013 16:34, schrieb Juan Quintela: > > Anthony Liguori wrote: > >> Maybe we could use a wiki page to setup a rolling agenda? > > > > I think this could be easier for everybody involved. > > > > Especially because you just

Re: [Qemu-devel] Could configure generate QEMU's linker scripts?

2013-05-21 Thread Ed Maste
On 20 May 2013 13:21, Richard Henderson wrote: > In general I believe that using the -Ttext-segment ADDR flag for ld > would completely obviate the need for even editing the link script. That sounds cleaner, although there's a wrinkle for FreeBSD. We're still using binutils version 2.17.50 in th

Re: [Qemu-devel] (Another) 1.4.1 -> 1.5.0 migration failure

2013-05-21 Thread Peter Maydell
On 21 May 2013 18:26, mdroth wrote: > static const VMStateDescription vmstate_i6300esb = { > .name = "i6300esb_wdt", > .version_id = sizeof(I6300State), > .minimum_version_id = sizeof(I6300State), > .minimum_version_id_old = sizeof(I6300State), > apparently minimum version ID is s

Re: [Qemu-devel] [libvirt] [qemu-devel] Default machine type setting for ppc64

2013-05-21 Thread Daniel P. Berrange
On Tue, May 21, 2013 at 11:12:26AM -0600, Eric Blake wrote: > On 05/21/2013 10:42 AM, Anthony Liguori wrote: > > Perhaps the right thing to do for OpenStack is to allow for a user > > specified configuration file to select things like the default hardware > > models/machine types? Then this could

Re: [Qemu-devel] (Another) 1.4.1 -> 1.5.0 migration failure

2013-05-21 Thread mdroth
On Tue, May 21, 2013 at 11:55:56AM -0500, mdroth wrote: > On Tue, May 21, 2013 at 12:33:38PM +0100, Nicholas Thomas wrote: > > Hi all, > > > > Migrating from: > > > > /opt/qemu-1.4.1/bin/qemu-system-x86_64 -M pc -watchdog i6300esb > > -watchdog-action reset [...] > > > > to: > > > > /opt/qemu-

Re: [Qemu-devel] [libvirt] [qemu-devel] Default machine type setting for ppc64

2013-05-21 Thread Eric Blake
On 05/21/2013 10:42 AM, Anthony Liguori wrote: > Perhaps the right thing to do for OpenStack is to allow for a user > specified configuration file to select things like the default hardware > models/machine types? Then this could become node configuration instead > of dynamic configuration. > > I

Re: [Qemu-devel] (Another) 1.4.1 -> 1.5.0 migration failure

2013-05-21 Thread mdroth
On Tue, May 21, 2013 at 12:33:38PM +0100, Nicholas Thomas wrote: > Hi all, > > Migrating from: > > /opt/qemu-1.4.1/bin/qemu-system-x86_64 -M pc -watchdog i6300esb > -watchdog-action reset [...] > > to: > > /opt/qemu-1.5.0/bin/qemu-system-x86_64 -M pc-i440fx-1.4 -watchdog > i6300esb -watchdog-a

Re: [Qemu-devel] [RFC PATCH v3 06/11] qemu-ga: Add Windows VSS requester to quisce applications and filesystems

2013-05-21 Thread Eric Blake
On 05/21/2013 09:33 AM, Tomoki Sekiyama wrote: > Add VSS requester functions for to qemu-ga. > This provides facility to request VSS service in Windows guest to quisce s/quisce/quiesce/ > applications and filesystems. This function is only supported in Windows > 2003 or later. In older guests, th

Re: [Qemu-devel] [RFC PATCH v3 01/11] configure: Support configuring c++ compiler

2013-05-21 Thread Peter Maydell
On 21 May 2013 16:33, Tomoki Sekiyama wrote: > Add configuration for c++ compiler (${corss_prefix}g++ as default) in > configure and Makefiles. I think you should follow the same logic we use for picking the C compiler, so that we use 'c++' rather than 'g++' if cross_prefix isn't specified. Other

Re: [Qemu-devel] [RFC PATCH v3 04/11] qemu-ga: Add an configure option to specify path to Windows VSS SDK

2013-05-21 Thread Eric Blake
On 05/21/2013 09:33 AM, Tomoki Sekiyama wrote: > To enable VSS support in qemu-ga for Windows, header files included in > VSS SDK is required. > The VSS support is enabled when the option like below: > ./configure --with-vss-sdk="/pass/to/VSS SDK" > > VSS SDK is available from: > http://www.mi

Re: [Qemu-devel] [PATCH] Fix mask of pte index

2013-05-21 Thread Andreas Färber
Am 21.05.2013 14:05, schrieb Qiao Nuohan: > On 05/21/2013 07:32 PM, Andreas Färber wrote: >> This patch is missing a Signed-off-by! > > Ha! I forgot it. > >> >> If you can reply with one, I'd fix up the subject for you (it should >> indicate where you are fixing it) and queue it together with my

Re: [Qemu-devel] [RFC PATCH v3 03/11] Add a script to extract VSS SDK headers on POSIX system

2013-05-21 Thread Eric Blake
On 05/21/2013 09:33 AM, Tomoki Sekiyama wrote: > VSS SDK(*) setup.exe is only runnable on Windows. This adds a script > to extract VSS SDK headers on POSIX-systems using msitools. > > * http://www.microsoft.com/en-us/download/details.aspx?id=23490 > > From: Paolo Bonzini > Signed-off-by: Tomok

Re: [Qemu-devel] [PATCH v3 2/8] block: add basic backup support to block driver

2013-05-21 Thread Paolo Bonzini
Il 21/05/2013 18:26, Dietmar Maurer ha scritto: >> Hmm, right. But do we need the bitmap at all? We can just use >> > bdrv_is_allocated like bdrv_co_do_readv does. > Does that works with a nbd driver? Ah, right. That's the answer. > Or does that add another RPC call (slow down)? It doesn't wo

Re: [Qemu-devel] [RFC PATCH v3 01/11] configure: Support configuring c++ compiler

2013-05-21 Thread Eric Blake
On 05/21/2013 09:33 AM, Tomoki Sekiyama wrote: > Add configuration for c++ compiler (${corss_prefix}g++ as default) in s/corss/cross/ > configure and Makefiles. > > Currently, usage of c++ language is only for access to Windows VSS > using COM+ services in qemu-guest-agent for Windows. > -- E

Re: [Qemu-devel] [PATCH] ui/gtk.c: Fix *BSD build of Gtk+ UI

2013-05-21 Thread Laszlo Ersek
On 05/21/13 18:14, Brad Smith wrote: > Fix the build of the Gtk+ UI on *BSD systems. > > Signed-off-by: Brad Smith > > diff --git a/include/qemu-common.h b/include/qemu-common.h > index af769f5..c944bb7 100644 > --- a/include/qemu-common.h > +++ b/include/qemu-common.h > @@ -45,6 +45,7 @@ > #if

Re: [Qemu-devel] [qemu-devel][libvirt] Default machine type setting for ppc64

2013-05-21 Thread Anthony Liguori
"Daniel P. Berrange" writes: > On Tue, May 21, 2013 at 07:55:27PM +1000, Paul Mackerras wrote: >> On Tue, May 21, 2013 at 09:39:53AM +0100, Daniel P. Berrange wrote: >> I think libvirt needs some more sensible way to ask qemu what its >> capabilities are. Currently it has no way to ask qemu "wha

Re: [Qemu-devel] KVM call agenda for 2013-05-21

2013-05-21 Thread Andreas Färber
Am 21.05.2013 16:34, schrieb Juan Quintela: > Anthony Liguori wrote: >> Maybe we could use a wiki page to setup a rolling agenda? > > I think this could be easier for everybody involved. > > Especially because you just look if there is anything to discuss? On the other hand, the Wiki doesn't se

Re: [Qemu-devel] [PATCH v3 2/8] block: add basic backup support to block driver

2013-05-21 Thread Dietmar Maurer
> Hmm, right. But do we need the bitmap at all? We can just use > bdrv_is_allocated like bdrv_co_do_readv does. Does that works with a nbd driver? Or does that add another RPC call (slow down)?

  1   2   3   >