[Qemu-devel] Wince 6.5 Support on qemu-system-arm

2014-08-07 Thread wasim nm
Hi, I would like to know if wince 6.5 is supported on qemu-arm? for any of the omap3machine. If NO-> what effort would it take to boot wince 6.5 on qemu-omap3 using beagle board as reference ,I hope i am clear ... Thanks wnm

[Qemu-devel] [PATCH 2/2] sheepdog: improve error handling for a case of failed lock

2014-08-07 Thread Hitoshi Mitake
Recently, sheepdog revived its VDI locking functionality. This patch updates sheepdog driver of QEMU for this feature: 1. Improve error message when QEMU fails to acquire lock of VDI. Current sheepdog driver prints an error message "VDI isn't locked" when it fails to acquire lock. It is a little b

[Qemu-devel] [PATCH 0/2] sheepdog driver update related to VDI locking feature

2014-08-07 Thread Hitoshi Mitake
Recently, sheepdog revived VDI locking functionality. This patch updates sheepdog driver of QEMU for this feature. Hitoshi Mitake (2): sheepdog: adopting protocol update for VDI locking sheepdog: improve error handling for a case of failed lock block/sheepdog.c | 12 +++- 1 file chan

[Qemu-devel] [PATCH 1/2] sheepdog: adopting protocol update for VDI locking

2014-08-07 Thread Hitoshi Mitake
The update is required for supporting iSCSI multipath. It doesn't affect behavior of QEMU driver but adding a new field to vdi request struct is required. Cc: Kevin Wolf Cc: Stefan Hajnoczi Cc: Liu Yuan Cc: MORITA Kazutaka Signed-off-by: Hitoshi Mitake --- block/sheepdog.c | 8 +++- 1 fi

Re: [Qemu-devel] [PATCH v5 1/6] exec: add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr

2014-08-07 Thread Hu Tao
On Wed, Aug 06, 2014 at 10:15:17PM +1000, Peter Crosthwaite wrote: > On Wed, Aug 6, 2014 at 3:36 PM, Hu Tao wrote: > > Add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr so that > > we can handler errors. > > "handle" > > > > > Signed-off-by: Hu Tao > > --- > > exec.c

[Qemu-devel] [PATCH v3 03/10] virtio-blk: fix reference a pointer which might be freed

2014-08-07 Thread zhanghailiang
In function virtio_blk_handle_request, it may freed memory pointed by req, So do not access member of req after calling this function. Reviewed-by: Stefan Hajnoczi Signed-off-by: zhanghailiang --- hw/block/virtio-blk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/

[Qemu-devel] [PATCH v3 10/10] block/vvfat: fix setbuf stream parameter may be NULL

2014-08-07 Thread zhanghailiang
From: Li Liu fopen() may return NULL which will cause setbuf() segmentfault Signed-off-by: zhanghailiang Signed-off-by: Li Liu --- block/vvfat.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/vvfat.c b/block/vvfat.c index 70176b1..6889ea9 100644 --- a/block/vvfa

[Qemu-devel] [PATCH v3 02/10] monitor: fix access freed memory

2014-08-07 Thread zhanghailiang
The function monitor_fdset_dup_fd_find_remove() references member of 'mon_fdset' which may be freed in function monitor_fdset_cleanup() Signed-off-by: zhanghailiang --- monitor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monitor.c b/monitor.c index 5bc70a6..41e46a6 1

[Qemu-devel] [PATCH v3 06/10] slirp: check return value of malloc()

2014-08-07 Thread zhanghailiang
Signed-off-by: zhanghailiang --- slirp/misc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/slirp/misc.c b/slirp/misc.c index b8eb74c..0109c9f 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -55,6 +55,9 @@ int add_exec(struct ex_list **ex_ptr, int do_pty, char *exec,

[Qemu-devel] [PATCH v3 07/10] linux-user: check return value of malloc()

2014-08-07 Thread zhanghailiang
Signed-off-by: zhanghailiang --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index a50229d..93d9076 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2870,6 +2870,9 @@ static inline abi_long do_msgsnd(int m

[Qemu-devel] [PATCH v3 01/10] l2cap: fix access freed memory

2014-08-07 Thread zhanghailiang
Pointer 'ch' will be used in function 'l2cap_channel_open_req_msg' after it was previously freed in 'l2cap_channel_open'. Assigned it to NULL after it is freed. Reviewed-by: Alex Bennée Signed-off-by: zhanghailiang --- hw/bt/l2cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[Qemu-devel] [PATCH v3 05/10] util/path: check return value of malloc()

2014-08-07 Thread zhanghailiang
Signed-off-by: zhanghailiang --- util/path.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/util/path.c b/util/path.c index 5c59d9f..df1653f 100644 --- a/util/path.c +++ b/util/path.c @@ -46,9 +46,12 @@ static struct pathelem *new_entry(const char *root,

[Qemu-devel] [PATCH v3 09/10] tcg: check return value of fopen()

2014-08-07 Thread zhanghailiang
From: Li Liu Give a warning message if fopen() failed to open the log file. Signed-off-by: zhanghailiang Signed-off-by: Li Liu --- tcg/tcg.c | 4 1 file changed, 4 insertions(+) diff --git a/tcg/tcg.c b/tcg/tcg.c index c068990..8f50d2a 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2406,6 +

[Qemu-devel] [PATCH v3 08/10] qtest: check the value returned by fopen()

2014-08-07 Thread zhanghailiang
The function fopen() may fail, so check its return value. Signed-off-by: zhanghailiang Signed-off-by: Li Liu --- qtest.c | 5 + tests/bios-tables-test.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/qtest.c b/qtest.c index 04a6dc1..ae9b636 100644 --- a/qtest.c +++

[Qemu-devel] [PATCH v3 04/10] ivshmem: check the value returned by fstat()

2014-08-07 Thread zhanghailiang
The function fstat() may fail, so check its return value. Signed-off-by: zhanghailiang --- hw/misc/ivshmem.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 768e528..2be4b86 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.

[Qemu-devel] [PATCH v3 00/10] fix three bugs about use-after-free and several api abuse

2014-08-07 Thread zhanghailiang
Hi, Besides fstat(), I have also found when call malloc() and fopen(), there are serveral places that do not check their return value. Though it is a small probability for the two functions to fail, but it is better to fix them. So i added these patches to this patch-set v2 -> v3: -ivshmem: cha

[Qemu-devel] [Bug 1318830] Re: High CPU usage on windows virtual machine

2014-08-07 Thread Boyan Stoyanovich
I have this problem also using Debian Wheezy with backported qemu- kvm-2.0.0, CPU usage for idle Windows machine ,using top to measure ,is constantly >30% (while in Windows Task Manager >5%), while Linux VM beside is working fine (CPU >5%) when idle... Here are the details about packages used and

[Qemu-devel] [Bug 1318830] Re: High CPU usage on windows virtual machine

2014-08-07 Thread Boyan Stoyanovich
P.S. I have tried above suggested (adding hyperv to the vm options...) soultion, but it doesn't help. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1318830 Title: High CPU usage on windows virtual

Re: [Qemu-devel] [PATCH v5 6/6] exec: improve error handling and reporting in file_ram_alloc() and gethugepagesize()

2014-08-07 Thread Hu Tao
On Wed, Aug 06, 2014 at 10:49:23PM +1000, Peter Crosthwaite wrote: > You subject line is excessively long. How about just "improve RAM file > error handling" and elaborate in a commit msg para? After splitting both patches are improving of RAM file error handling. I'll reword the subjects and drop

[Qemu-devel] [Bug 1318830] Re: High CPU usage on windows virtual machine

2014-08-07 Thread Boyan Stoyanovich
Typo correction: CPU usage for idle Windows machine, using top to measure, is constantly >30% (while in Windows Task Manager <5%), while Linux VM beside is working fine (CPU <5%) when idle... -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to

Re: [Qemu-devel] [PATCH v3 04/10] ivshmem: check the value returned by fstat()

2014-08-07 Thread Levente Kurusa
> The function fstat() may fail, so check its return value. > > Signed-off-by: zhanghailiang Acked-by: Levente Kurusa Thanks! Levente Kurusa

Re: [Qemu-devel] [PATCH v5 4/6] memory: add parameter errp to memory_region_init_rom_device

2014-08-07 Thread Hu Tao
On Wed, Aug 06, 2014 at 10:32:53PM +1000, Peter Crosthwaite wrote: > On Wed, Aug 6, 2014 at 3:36 PM, Hu Tao wrote: > > Add parameter errp to memory_region_init_rom_device and update all call > > sites to pass in &error_abort. > > > > Signed-off-by: Hu Tao > > Reviewed-by: Peter Crosthwaite > >

[Qemu-devel] [PATCH v6 1/7] exec: add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr

2014-08-07 Thread Hu Tao
Add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr so that we can handle errors. Signed-off-by: Hu Tao --- exec.c | 36 +++- include/exec/ram_addr.h | 4 ++-- memory.c| 6 +++--- 3 files changed, 32 insertions(+), 1

[Qemu-devel] [PATCH v6 0/7] memory API improvements and bug fixes for memory backends

2014-08-07 Thread Hu Tao
This series includes two parts: 1. part 1 includes patches 1-4, which improves error handling of memory_region_init_ram, memory_region_init_ram_ptr and memory_region_init_rom_device 2. part 2 includes patches 5-7, each fixes a bug of memory backend. changes to v5: - split pat

[Qemu-devel] [PATCH v6 3/7] memory: add parameter errp to memory_region_init_ram_ptr

2014-08-07 Thread Hu Tao
Add parameter errp to memory_region_init_ram_ptr and update all call sites to pass in &error_abort. Reviewed-by: Peter Crosthwaite Signed-off-by: Hu Tao --- hw/display/g364fb.c | 2 +- hw/i386/kvm/pci-assign.c | 3 ++- hw/misc/ivshmem.c| 5 +++-- hw/misc/vfio.c | 3 ++- h

[Qemu-devel] [PATCH v6 6/7] exec: report error when memory < hpagesize

2014-08-07 Thread Hu Tao
Report error when memory < hpagesize in file_ram_alloc() so callers can handle the error. This patch fix a problem that if user adds a memory-backend-file object using object_add command, specifying a size that is less than huge page size, qemu will core dump with message: Bad ram offset ff

[Qemu-devel] [PATCH v6 2/7] memory: add parameter errp to memory_region_init_ram

2014-08-07 Thread Hu Tao
Add parameter errp to memory_region_init_ram and update all call sites to pass in &error_abort. Signed-off-by: Hu Tao Reviewed-by: Peter Crosthwaite --- backends/hostmem-ram.c | 2 +- hw/alpha/typhoon.c | 3 ++- hw/arm/armv7m.c

[Qemu-devel] [PATCH v6 4/7] memory: add parameter errp to memory_region_init_rom_device

2014-08-07 Thread Hu Tao
Add parameter errp to memory_region_init_rom_device and update all call sites to pass in &error_abort. Reviewed-by: Peter Crosthwaite Signed-off-by: Hu Tao --- hw/block/pflash_cfi01.c | 2 +- hw/block/pflash_cfi02.c | 2 +- include/exec/memory.h | 4 +++- memory.c| 5 +++-- 4

[Qemu-devel] [PATCH v6 5/7] hostmem-ram: don't exit qemu if size of memory-backend-ram is way too big

2014-08-07 Thread Hu Tao
When using monitor command object_add to add a memory backend whose size is way too big to allocate memory for it, qemu just exits. In the case we'd better give an error message and keep guest running. The problem can be reproduced as follows: 1. run qemu 2. (monitor)object_add memory-backend-ram

[Qemu-devel] [PATCH v6 7/7] exec: add parameter errp to gethugepagesize

2014-08-07 Thread Hu Tao
Add parameter errp to gethugepagesize thus callers can handle errors. This patch fixes a problem that if user adds a memory-backend-file object using object_add command, specifying a non-existing directory for property mem-path, qemu will core dump with message: /nonexistingdir: No such file or

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Michael Roth
Quoting Eric Blake (2014-08-06 16:49:50) > On 08/06/2014 02:38 PM, Michael Roth wrote: > > Hi everyone, > > > > The following new patches are queued for QEMU stable v2.0.1: > > > > https://github.com/mdroth/qemu/commits/stable-2.0-staging > > > > The release is planned for 2014-08-15: > > > >

Re: [Qemu-devel] [PATCH v2 00/30] AHCI test suite framework

2014-08-07 Thread Stefan Hajnoczi
On Wed, Aug 06, 2014 at 12:50:23PM -0400, John Snow wrote: > > > On 08/06/2014 07:30 AM, Markus Armbruster wrote: > >Stefan Hajnoczi writes: > > > >>On Mon, Aug 04, 2014 at 05:11:01PM -0400, John Snow wrote: > >>>This patch series introduces a number of small fixes and tweaks to > >>>help suppor

Re: [Qemu-devel] [PATCH] test-coroutine: add baseline test that times the cost of function calls

2014-08-07 Thread Stefan Hajnoczi
On Wed, Aug 06, 2014 at 11:33:41AM +0200, Paolo Bonzini wrote: > This can be used to compute the cost of coroutine operations. In the > end the cost of the function call is a few clock cycles, so it's pretty > cheap for now, but it may become more relevant as the coroutine code > is optimized. >

Re: [Qemu-devel] [PATCH 0/2] VHDX endian fixes, error reporting

2014-08-07 Thread Stefan Hajnoczi
On Wed, Aug 06, 2014 at 03:54:56PM -0400, Jeff Cody wrote: > This series is mainly for some bug fixes related to VHDX endianness, stemming > from code reviews done by Markus Armbruster and Paolo Bonzini. Once I did > some > testing on a big-endian machine, several more endian related errors were

Re: [Qemu-devel] [PATCH RESEND 1/2] rng-egd: Free old chr_name value before setting new one

2014-08-07 Thread Paolo Bonzini
Il 07/08/2014 04:24, Amos Kong ha scritto: > Eduardo, a similar patch had been applied. > > commit 5e490b6a504912225dff0e520e1c6af68295d238 > Author: Amos Kong > Date: Thu Nov 21 16:42:50 2013 +0800 > > rng-egd: remove redundant free > > We didn't set default chr_name, the free is

[Qemu-devel] [PATCH v2 1/2] QEMUSizedBuffer based QEMUFile

2014-08-07 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" This is based on Stefan and Joel's patch that creates a QEMUFile that goes to a memory buffer; from: http://lists.gnu.org/archive/html/qemu-devel/2013-03/msg05036.html Using the QEMUFile interface, this patch adds support functions for operating on in-memory sized

[Qemu-devel] [PATCH v2 0/2] In memory QEMUFile

2014-08-07 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Hi, This patch-pair adds the QEMUSizedBuffer based in-memory QEMUFile written by Stefan Berger and Joel Schopp. I've made some minor fixes (and typo cleanups) and modified the existing test-vmstate to use it for some test cases. While there's nothing other tha

[Qemu-devel] [PATCH v2 2/2] Tests: QEMUSizedBuffer/QEMUBuffer

2014-08-07 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Modify some of tests/test-vmstate.c to use the in memory file based on QEMUSizedBuffer to provide basic testing of QEMUSizedBuffer and the associated memory backed QEMUFile type. Only some of the tests are changed so that the fd backed QEMUFile is still tested. Si

Re: [Qemu-devel] [PATCH 1/2] QEMUSizedBuffer based QEMUFile

2014-08-07 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: > On 08/06/2014 11:30 AM, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > This is based on Stefan and Joel's patch that creates a QEMUFile that goes > > to a memory buffer; from: > > > > http://lists.gnu.org/archive/html/qemu

Re: [Qemu-devel] [PATCH v1 00/17] dataplane: optimization and multi virtqueue support

2014-08-07 Thread Ming Lei
On Wed, Aug 6, 2014 at 11:40 PM, Kevin Wolf wrote: > Am 06.08.2014 um 13:28 hat Ming Lei geschrieben: >> On Wed, Aug 6, 2014 at 6:09 PM, Kevin Wolf wrote: >> > Am 06.08.2014 um 11:37 hat Ming Lei geschrieben: >> >> On Wed, Aug 6, 2014 at 4:48 PM, Kevin Wolf wrote: >> >> > Am 06.08.2014 um 07:33

[Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Richard W.M. Jones
(gdb) set architecture aarch64 The target architecture is assumed to be aarch64 (gdb) target remote tcp::1234 Remote debugging using tcp::1234 warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml" warning: Could not load XML target description; ignoring

Re: [Qemu-devel] [PATCH v1 00/17] dataplane: optimization and multi virtqueue support

2014-08-07 Thread Ming Lei
On Thu, Aug 7, 2014 at 6:27 PM, Ming Lei wrote: > On Wed, Aug 6, 2014 at 11:40 PM, Kevin Wolf wrote: > Also there are some problems with your patches which can't boot a > VM in my environment: > > - __thread patch: looks there is no '__thread' used, and the patch > basically makes bypass not wor

[Qemu-devel] Printf message in QEMU source code

2014-08-07 Thread Amit Tomer
I wanted to provide some printf statement in QEMU source code in order to debug some issue but not sure where do I see these printf statements? I have looked into following post but it is without any answers Debugging Qemu Source Code and not Kernel Source Code

[Qemu-devel] Printf message in QEMU source code

2014-08-07 Thread Amit Tomer
I wanted to provide some printf statement in QEMU source code in order to debug some issue but not sure where do I see these printf statements? I have looked into following post but it is without any answers Debugging Qemu Source Code and not Kernel Source Code

Re: [Qemu-devel] [PATCH v3 02/10] monitor: fix access freed memory

2014-08-07 Thread Gonglei (Arei)
> Subject: [Qemu-devel] [PATCH v3 02/10] monitor: fix access freed memory > > The function monitor_fdset_dup_fd_find_remove() references member of > 'mon_fdset' > which may be freed in function monitor_fdset_cleanup() > > Signed-off-by: zhanghailiang > --- Reviewed-by: Gonglei Best regards, -

Re: [Qemu-devel] [PATCH v3 05/10] util/path: check return value of malloc()

2014-08-07 Thread Gonglei (Arei)
> Subject: [Qemu-devel] [PATCH v3 05/10] util/path: check return value of > malloc() > > Signed-off-by: zhanghailiang > --- Reviewed-by: Gonglei Best regards, -Gonglei > util/path.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/util/path.c b/util/path.c

Re: [Qemu-devel] [PATCH v1 00/17] dataplane: optimization and multi virtqueue support

2014-08-07 Thread Kevin Wolf
Am 07.08.2014 um 12:52 hat Ming Lei geschrieben: > On Thu, Aug 7, 2014 at 6:27 PM, Ming Lei wrote: > > On Wed, Aug 6, 2014 at 11:40 PM, Kevin Wolf wrote: > > > Also there are some problems with your patches which can't boot a > > VM in my environment: > > > > - __thread patch: looks there is no

Re: [Qemu-devel] [PATCH v3 06/10] slirp: check return value of malloc()

2014-08-07 Thread Gonglei (Arei)
> Subject: [Qemu-devel] [PATCH v3 06/10] slirp: check return value of malloc() > > Signed-off-by: zhanghailiang > --- > slirp/misc.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/slirp/misc.c b/slirp/misc.c > index b8eb74c..0109c9f 100644 > --- a/slirp/misc.c

Re: [Qemu-devel] [PATCH v6 0/7] memory API improvements and bug fixes for memory backends

2014-08-07 Thread Peter Crosthwaite
On Thu, Aug 7, 2014 at 7:10 PM, Hu Tao wrote: > This series includes two parts: > > 1. part 1 includes patches 1-4, which improves error handling of > memory_region_init_ram, memory_region_init_ram_ptr and > memory_region_init_rom_device > > 2. part 2 includes patches 5-7, each fixes

Re: [Qemu-devel] [PATCH v3 08/10] qtest: check the value returned by fopen()

2014-08-07 Thread Gonglei (Arei)
> Subject: [Qemu-devel] [PATCH v3 08/10] qtest: check the value returned by > fopen() > > The function fopen() may fail, so check its return value. > > Signed-off-by: zhanghailiang > Signed-off-by: Li Liu > --- > qtest.c | 5 + > tests/bios-tables-test.c | 2 ++ > 2 files

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Peter Maydell
On 7 August 2014 11:42, Richard W.M. Jones wrote: > (gdb) set architecture aarch64 > The target architecture is assumed to be aarch64 > (gdb) target remote tcp::1234 > Remote debugging using tcp::1234 > warning: while parsing target description (at line 1): Could not load XML > document "arm-core

Re: [Qemu-devel] [PULL 0/2] vfio updates

2014-08-07 Thread Peter Maydell
On 5 August 2014 20:44, Alex Williamson wrote: > The following changes since commit 69f87f713069f1f70f86cb65883f7d43e3aa21de: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20140804' into staging (2014-08-04 > 15:01:38 +0100) > > are available in the git repository a

Re: [Qemu-devel] [PATCH v6 1/7] exec: add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr

2014-08-07 Thread Peter Crosthwaite
On Thu, Aug 7, 2014 at 7:10 PM, Hu Tao wrote: > Add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr so that > we can handle errors. > > Signed-off-by: Hu Tao Reviewed-by: Peter Crosthwaite Optional nit-picky suggestions below. > --- > exec.c | 36 +++

Re: [Qemu-devel] [PATCH v3 06/10] slirp: check return value of malloc()

2014-08-07 Thread zhanghailiang
On 2014/8/7 19:08, Gonglei (Arei) wrote: Subject: [Qemu-devel] [PATCH v3 06/10] slirp: check return value of malloc() Signed-off-by: zhanghailiang --- slirp/misc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/slirp/misc.c b/slirp/misc.c index b8eb74c..0109c9f 10

Re: [Qemu-devel] [PULL 00/11] KVM, icount changes for 2014-08-06

2014-08-07 Thread Peter Maydell
On 6 August 2014 17:12, Paolo Bonzini wrote: > The following changes since commit 41a1a9c42c4e0fb5f1b94aa8b72e42f66ebde3d9: > > po: Update German translation (2014-07-28 23:37:17 +0200) > > are available in the git repository at: > > git://github.com/bonzini/qemu.git tags/for-upstream > > for

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Richard W.M. Jones
On Thu, Aug 07, 2014 at 12:18:49PM +0100, Peter Maydell wrote: > you didn't select a 32 bit CPU either explicitly or by default > on the QEMU command line? Note that '-machine type=virt' > defaults to a Cortex-A15 even in qemu-softmmu-aarch64 > (this is unfortunate but fallout from the fact that we

Re: [Qemu-devel] [PATCH v3 08/10] qtest: check the value returned by fopen()

2014-08-07 Thread zhanghailiang
On 2014/8/7 19:14, Gonglei (Arei) wrote: Subject: [Qemu-devel] [PATCH v3 08/10] qtest: check the value returned by fopen() The function fopen() may fail, so check its return value. Signed-off-by: zhanghailiang Signed-off-by: Li Liu --- qtest.c | 5 + tests/bios-tables-te

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Peter Maydell
On 7 August 2014 12:29, Richard W.M. Jones wrote: > On Thu, Aug 07, 2014 at 12:18:49PM +0100, Peter Maydell wrote: >> you didn't select a 32 bit CPU either explicitly or by default >> on the QEMU command line? Note that '-machine type=virt' >> defaults to a Cortex-A15 even in qemu-softmmu-aarch64

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Richard W.M. Jones
On Thu, Aug 07, 2014 at 12:35:27PM +0100, Peter Maydell wrote: > On 7 August 2014 12:29, Richard W.M. Jones wrote: > > On Thu, Aug 07, 2014 at 12:18:49PM +0100, Peter Maydell wrote: > >> you didn't select a 32 bit CPU either explicitly or by default > >> on the QEMU command line? Note that '-machi

Re: [Qemu-devel] [PATCH v6 6/7] exec: report error when memory < hpagesize

2014-08-07 Thread Peter Crosthwaite
On Thu, Aug 7, 2014 at 7:10 PM, Hu Tao wrote: > Report error when memory < hpagesize in file_ram_alloc() so callers can "an error" > handle the error. > > This patch fix a problem that if user adds a memory-backend-file object Long sentence. I would drop the "This patch fixes a problem that" >

Re: [Qemu-devel] [PATCH v6 7/7] exec: add parameter errp to gethugepagesize

2014-08-07 Thread Peter Crosthwaite
On Thu, Aug 7, 2014 at 7:10 PM, Hu Tao wrote: > Add parameter errp to gethugepagesize thus callers can handle errors. > > This patch fixes a problem that if user adds a memory-backend-file > object using object_add command, specifying a non-existing directory > for property mem-path, qemu will cor

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-07 Thread Gonglei (Arei)
Hi, Ping... please. TBH, I am confused which maintainer can maintain the patch serials about bootindex. Gerd is seemingly not in maillist later two weeks. Markus? Paolo? MST? PMM? Eduardo? Thanks for any help. Best regards, -Gonglei > -Original Message- > From: Gonglei (Arei) > Sen

Re: [Qemu-devel] [PATCH v6 7/7] exec: add parameter errp to gethugepagesize

2014-08-07 Thread Gonglei (Arei)
> -Original Message- > From: qemu-devel-bounces+arei.gonglei=huawei@nongnu.org > [mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On > Behalf Of Peter Crosthwaite > Sent: Thursday, August 07, 2014 7:47 PM > To: Hu Tao > Cc: Yasunori Goto; Paolo Bonzini; Yasuaki Isimatu; qe

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Peter Maydell
On 7 August 2014 12:43, Richard W.M. Jones wrote: > On Thu, Aug 07, 2014 at 12:35:27PM +0100, Peter Maydell wrote: >> On 7 August 2014 12:29, Richard W.M. Jones wrote: >> > On Thu, Aug 07, 2014 at 12:18:49PM +0100, Peter Maydell wrote: >> >> you didn't select a 32 bit CPU either explicitly or by

Re: [Qemu-devel] Printf message in QEMU source code

2014-08-07 Thread Peter Crosthwaite
On Thu, Aug 7, 2014 at 8:55 PM, Amit Tomer wrote: > I wanted to provide some printf statement in QEMU source code in order to > debug some issue but not sure where do I see these printf statements? > Don't use printf for debugging instrumentation. When doing quick hacking, can use fprintf(stderr,

Re: [Qemu-devel] [PATCH target-arm] arm: armv7m: Respect elf entry point

2014-08-07 Thread Peter Crosthwaite
On Mon, Aug 4, 2014 at 5:54 PM, Alistair Francis wrote: > On Sat, Aug 2, 2014 at 9:41 AM, Peter Crosthwaite > wrote: >> ARMv7M has it's own bootloader (separate from the regular ARM >> bootloader) that is elf aware. It is able to load elfs but it does >> not set the program counter to the elf ent

Re: [Qemu-devel] [PATCH v2 0/4] block/parallels: 2TB+ parallels images support

2014-08-07 Thread Denis V. Lunev
On 28/07/14 20:23, Denis V. Lunev wrote: Parallels has released in the recent updates of Parallels Server 5/6 new addition to his image format. Images with signature WithouFreSpacExt have offsets in the catalog coded not as offsets in sectors (multiple of 512 bytes) but offsets coded in blocks (i

Re: [Qemu-devel] Wince 6.5 Support on qemu-system-arm

2014-08-07 Thread wasim nm
Hi All, 1> I would like to know if wince 6.5 or higher is supported on qemu-arm? for any of the omap3 machine 2> If NO-> what effort would it take to boot wince 6.5 on qemu-omap3 using beagle board as reference. Please reply Thanks much Wnm On 8/7/14, wasim nm wrote: > Hi, > I would li

Re: [Qemu-devel] [edk2] license for binary drivers

2014-08-07 Thread Paolo Bonzini
Il 06/08/2014 23:51, Andrew Fish ha scritto: > On Aug 6, 2014, at 6:44 AM, Paolo Bonzini wrote: >> However, the non-free nature of the OVMF binaries mean that QEMU >> will never ever ship OVMF binaries until the license is fixed for >> the offending FAT driver. Not only because we don't want to g

Re: [Qemu-devel] [PATCH v2 0/2] Add machine type pc-1.0-qemu-kvm for live migrate compatibility with qemu-kvm

2014-08-07 Thread Serge E. Hallyn
Quoting Alex Bligh (a...@alex.org.uk): > Serge, > > On 7 Aug 2014, at 03:50, Serge Hallyn wrote: > > > This worked for me when migrating by hand. I'm trying to make it work > > through libvirt, using the following patch. (So whether to have > > pc-1.0 be treated as qemu's or qemu-kvm's pc-1.0

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-07 Thread Paolo Bonzini
Il 07/08/2014 13:50, Gonglei (Arei) ha scritto: > Hi, > > Ping... please. > > TBH, I am confused which maintainer can maintain the patch serials about > bootindex. > > Gerd is seemingly not in maillist later two weeks. > > Markus? Paolo? MST? PMM? Eduardo? Thanks for any help. Gerd is on hol

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-07 Thread Gonglei (Arei)
> Subject: Re: [PATCH v5 0/8] modify boot order of guest, and take effect after > rebooting > > Il 07/08/2014 13:50, Gonglei (Arei) ha scritto: > > Hi, > > > > Ping... please. > > > > TBH, I am confused which maintainer can maintain the patch serials about > bootindex. > > > > Gerd is seemingly no

Re: [Qemu-devel] [PATCH v1 00/17] dataplane: optimization and multi virtqueue support

2014-08-07 Thread Ming Lei
On Thu, Aug 7, 2014 at 7:06 PM, Kevin Wolf wrote: > Am 07.08.2014 um 12:52 hat Ming Lei geschrieben: >> On Thu, Aug 7, 2014 at 6:27 PM, Ming Lei wrote: >> > On Wed, Aug 6, 2014 at 11:40 PM, Kevin Wolf wrote: >> >> > Also there are some problems with your patches which can't boot a >> > VM in my

[Qemu-devel] [PATCH v4 07/15] target-tricore: Add instructions of SRR opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SRR opcode format. Add helper for add/sub_ssov. Signed-off-by: Bastian Koppelmann --- v3 -> v4: - Replace gen_calc_psw_sv, gen_calc_psw_sav, gen_calc_psw_av calls. - Rename gen_sub_i32 to gen_sub_d. - Fix V bit calculation in gen_sub_d and gen_mul_i32s. - helpe

[Qemu-devel] [PATCH v4 12/15] target-tricore: Add instructions of SBR opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SBR opcode format. Add gen_loop micro-op generator function. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 66 +- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/ta

[Qemu-devel] [PATCH v4 01/15] target-tricore: Add target stubs and qom-cpu

2014-08-07 Thread Bastian Koppelmann
Add TriCore target stubs, and QOM cpu. Signed-off-by: Bastian Koppelmann --- v3 -> v4: - tricore_cpu_type_info changed to abstract. - Change documentation of PSW_USB_AV and PSW_USB_SAV bit to only use bit 31. - Change psw_read/_write to only use bit 31 for PSW_USB_AV and PSW_USB_SAV.

[Qemu-devel] [PATCH v4 08/15] target-tricore: Add instructions of SSR opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SSR opcode format. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/translate.c ind

[Qemu-devel] [PATCH v4 09/15] target-tricore: Add instructions of SRRS and SLRO opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SSRS and SLRO opcode format. Add micro-op generator functions for offset loads. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 54 ++ 1 file changed, 54 insertions(+) diff --git

[Qemu-devel] [PATCH v4 05/15] target-tricore: Add masks and opcodes for decoding

2014-08-07 Thread Bastian Koppelmann
Add masks and opcodes for decoding TriCore instructions. Signed-off-by: Bastian Koppelmann --- target-tricore/translate.c |1 + target-tricore/tricore-opcodes.h | 1406 ++ 2 files changed, 1407 insertions(+) create mode 100644 target-tricore/tricore

[Qemu-devel] [PATCH v4 00/15] TriCore architecture guest implementation

2014-08-07 Thread Bastian Koppelmann
Hi, my aim is to add Infineon's TriCore architecture to QEMU. This series of patches adds the target stubs, a basic testboard and a softmmu for system mode emulation. Furthermore it adds all the 16 bit long instructions of the architecture grouped by opcode format. After this series of patches

[Qemu-devel] [PATCH v4 11/15] target-tricore: Add instructions of SBC and SBRN opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SBC and SBRN opcode format. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 36 1 file changed, 36 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/translate.c inde

[Qemu-devel] [PATCH v4 02/15] target-tricore: Add board for systemmode

2014-08-07 Thread Bastian Koppelmann
Add basic board to allow systemmode emulation Signed-off-by: Bastian Koppelmann --- hw/tricore/Makefile.objs | 1 + hw/tricore/tricore_testboard.c | 129 + include/hw/tricore/tricore.h | 54 + 3 files changed, 184 insertions(+)

[Qemu-devel] [PATCH v4 06/15] target-tricore: Add instructions of SRC opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SRC opcode format. Add micro-op generator functions for add, conditional add/sub and shi/shai. Signed-off-by: Bastian Koppelmann --- v3 -> v4: - Remove gen_calc_psw_sv, gen_calc_psw_av, gen_calc_psw_sav functions. - Replace gen_calc_psw_sv, gen_calc_psw_sav, gen_calc_p

[Qemu-devel] [PATCH v4 13/15] target-tricore: Add instructions of SC opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SC opcode format. Add helper for begin interrupt service routine. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/helper.h| 1 + target-tricore/op_helper.c | 59 ++ target-tricore/translate

[Qemu-devel] [PATCH v4 04/15] target-tricore: Add initialization for translation and activate target

2014-08-07 Thread Bastian Koppelmann
Add tcg and cpu model initialization. Add gen_intermediate_code function. Activate target in configure and add softmmu config. Signed-off-by: Bastian Koppelmann --- configure | 5 ++ default-configs/tricore-softmmu.mak | 3 + target-tricore/translate.c | 16

[Qemu-devel] [PATCH v4 03/15] target-tricore: Add softmmu support

2014-08-07 Thread Bastian Koppelmann
Add basic softmmu support for TriCore Signed-off-by: Bastian Koppelmann --- target-tricore/helper.c| 54 +- target-tricore/op_helper.c | 33 +++- 2 files changed, 85 insertions(+), 2 deletions(-) diff --git a/target-tricore

[Qemu-devel] [PATCH v4 10/15] target-tricore: Add instructions of SB opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SB opcode format. Add helper call/ret. Add micro-op generator functions for branches. Add makro to generate helper functions. Signed-off-by: Bastian Koppelmann --- v3 -> v4: - Add missing break in gen_compute_branch at CALL insn. target-tricore/helper.h| 3 + targe

Re: [Qemu-devel] [RFC PATCH 10/10] cpus: reclaim allocated vCPU objects

2014-08-07 Thread Anshul Makkar
Thanks Gu.. cpu-hotunplug is working fine in my tests. For cpu-hotplug, I get inconsistent result if I delete arbitrary cpu and not just the last one. for eg list of cpus: 1, 2 ,3 device_add cpu 4 device_add cpu 5 device_add cpu 6 device_del cpu 4 device_del cpu 6 now if I do device_add cpu6,

[Qemu-devel] [Bug 1353947] [NEW] Hypervisor with QEMU-2.0/libvirtd 1.2.2 stack when launching VM with CirrOS or Ubuntu 12.04

2014-08-07 Thread Eyal Perry
Public bug reported: The issue observed when running an hypervisor with QEMU 2.0/libvirtd 1.2.2 The VM network interface is attached to a PCI virtual function (SR-IOV). When we ran VM with guest OS CirrOS or Ubuntu 12.04 we observed an hipervisor hang shortly after the VM is loaded We observed t

[Qemu-devel] [PULL v2 00/11] KVM, icount changes for 2014-08-06

2014-08-07 Thread Paolo Bonzini
The following changes since commit 41a1a9c42c4e0fb5f1b94aa8b72e42f66ebde3d9: po: Update German translation (2014-07-28 23:37:17 +0200) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to fetch changes up to eddedd546a68f6ac864b71d50dd8d39b9

[Qemu-devel] [PATCH v4 14/15] target-tricore: Add instructions of SLR, SSRO and SRO opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SLR, SSRO and SRO opcode format. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 121 + 1 file changed, 121 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/

[Qemu-devel] [PULL v2 10/11] monitor: Add drift info to 'info jit'

2014-08-07 Thread Paolo Bonzini
From: Sebastian Tanase Show in 'info jit' the current delay between the host clock and the guest clock. In addition, print the maximum advance and delay of the guest compared to the host. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué Signed-off-by: Paolo Bonzini --- cpu-exec.c

[Qemu-devel] [PATCH v4 15/15] target-tricore: Add instructions of SR opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SR opcode format. Add micro-op generator functions for saturate. Add helper return from exception (rfe). Signed-off-by: Bastian Koppelmann --- v3 -> v4: - Replace first movcond with tcg_gen_setcond and second with tcg_gen_or at RSUB insn. - Add AV, SAV calculation to

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Christopher Covington
On 08/07/2014 08:03 AM, Peter Maydell wrote: > On 7 August 2014 12:43, Richard W.M. Jones wrote: >> On Thu, Aug 07, 2014 at 12:35:27PM +0100, Peter Maydell wrote: >>> On 7 August 2014 12:29, Richard W.M. Jones wrote: On Thu, Aug 07, 2014 at 12:18:49PM +0100, Peter Maydell wrote: > you di

Re: [Qemu-devel] [PATCH v1 00/17] dataplane: optimization and multi virtqueue support

2014-08-07 Thread Kevin Wolf
Am 07.08.2014 um 12:27 hat Ming Lei geschrieben: > On Wed, Aug 6, 2014 at 11:40 PM, Kevin Wolf wrote: > > Am 06.08.2014 um 13:28 hat Ming Lei geschrieben: > >> On Wed, Aug 6, 2014 at 6:09 PM, Kevin Wolf wrote: > >> > Am 06.08.2014 um 11:37 hat Ming Lei geschrieben: > >> >> On Wed, Aug 6, 2014 at

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Peter Maydell
On 7 August 2014 14:43, Christopher Covington wrote: > On 08/07/2014 08:03 AM, Peter Maydell wrote: >> No, because at the moment our AArch64 TCG implementation >> (and the way we configure KVM) assumes that the highest >> exception level is running AArch64. We might fix this eventually, >> though.

Re: [Qemu-devel] [PATCH 0/2] VHDX endian fixes, error reporting

2014-08-07 Thread Kevin Wolf
Am 07.08.2014 um 12:05 hat Stefan Hajnoczi geschrieben: > On Wed, Aug 06, 2014 at 03:54:56PM -0400, Jeff Cody wrote: > > This series is mainly for some bug fixes related to VHDX endianness, > > stemming > > from code reviews done by Markus Armbruster and Paolo Bonzini. Once I did > > some > > te

Re: [Qemu-devel] [PATCH] test-coroutine: add baseline test that times the cost of function calls

2014-08-07 Thread Kevin Wolf
Am 07.08.2014 um 11:33 hat Stefan Hajnoczi geschrieben: > On Wed, Aug 06, 2014 at 11:33:41AM +0200, Paolo Bonzini wrote: > > This can be used to compute the cost of coroutine operations. In the > > end the cost of the function call is a few clock cycles, so it's pretty > > cheap for now, but it ma

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Christopher Covington
On 08/07/2014 09:53 AM, Peter Maydell wrote: > On 7 August 2014 14:43, Christopher Covington wrote: >> On 08/07/2014 08:03 AM, Peter Maydell wrote: >>> No, because at the moment our AArch64 TCG implementation >>> (and the way we configure KVM) assumes that the highest >>> exception level is runnin

Re: [Qemu-devel] [PATCH 2/2] scsi-bus: Convert DeviceClass init to realize

2014-08-07 Thread Kevin Wolf
Am 05.08.2014 um 11:11 hat Fam Zheng geschrieben: > Replace "init/destroy" with "realize/unrealize" in SCSIDeviceClass, > which has errp as a parameter. So all the implementations now uses > error_setg instead of error_report for reporting error. > > Also in lsi53c895a, report the error when initi

  1   2   >