Re: [Qemu-devel] [PATCH fix for 2.1] makefile: Fix tools compile

2014-06-30 Thread Paolo Bonzini
Il 01/07/2014 07:42, Alexey Kardashevskiy ha scritto: This is wrong actually. The problem here that compiler knows how to optimize constants. sin(0.0) is the one while log(0.0) is not (it is supposed to throw error or something as it the result is infinity). So the correct test here could be: in

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-06-30 Thread Ilya Almametov
** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473 Title: guest hang due to missing clock interrupt Status in QEMU: New St

[Qemu-devel] [Bug 1307473] CurrentDmesg.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "CurrentDmesg.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142885/+files/CurrentDmesg.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/130747

[Qemu-devel] [Bug 1307473] ProcInterrupts.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "ProcInterrupts.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142892/+files/ProcInterrupts.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/13

[Qemu-devel] [Bug 1307473] ProcEnviron.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "ProcEnviron.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142891/+files/ProcEnviron.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473

[Qemu-devel] [Bug 1307473] Lsusb.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "Lsusb.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142889/+files/Lsusb.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473 Title: gue

[Qemu-devel] [Bug 1307473] UdevLog.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "UdevLog.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142895/+files/UdevLog.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473 Title:

[Qemu-devel] [Bug 1307473] UdevDb.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "UdevDb.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142894/+files/UdevDb.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473 Title: g

[Qemu-devel] [Bug 1307473] WifiSyslog.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "WifiSyslog.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142896/+files/WifiSyslog.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473 T

[Qemu-devel] [Bug 1307473] IwConfig.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "IwConfig.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142887/+files/IwConfig.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473 Title

[Qemu-devel] [Bug 1307473] ProcCpuinfo.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "ProcCpuinfo.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142890/+files/ProcCpuinfo.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473

[Qemu-devel] [Bug 1307473] ProcModules.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "ProcModules.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142893/+files/ProcModules.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473

[Qemu-devel] [Bug 1307473] Dependencies.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "Dependencies.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142886/+files/Dependencies.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/130747

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-06-30 Thread Ilya Almametov
AlsaDevices: total 0 crw-rw 1 root audio 116, 1 июня 30 18:31 seq crw-rw 1 root audio 116, 33 июня 30 18:31 timer AplayDevices: Error: [Errno 2] No such file or directory ApportVersion: 2.14.1-0ubuntu3.2 Architecture: amd64 ArecordDevices: Error: [Errno 2] No such file or directory Au

[Qemu-devel] [Bug 1307473] Lspci.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "Lspci.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142888/+files/Lspci.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473 Title: gue

[Qemu-devel] [Bug 1307473] BootDmesg.txt

2014-06-30 Thread Ilya Almametov
apport information ** Attachment added: "BootDmesg.txt" https://bugs.launchpad.net/bugs/1307473/+attachment/4142884/+files/BootDmesg.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473 Tit

[Qemu-devel] [Bug 1336123] [NEW] bad switch, segfault in hw/pci-host/bonito.c bonito_readl

2014-06-30 Thread Robin Lee
Public bug reported: http://git.qemu.org/?p=qemu.git;a=blob;f=hw/pci- host/bonito.c;h=56292adb03cd1a9873c2c9e5a0b2978fd0572214;hb=master#l301 The switch statement is error-prone, since two branches return the same result. Segfault reproducing steps: 1. make a Linux kernel(for example 3.16.0-rc2)

Re: [Qemu-devel] [PATCH v1 2/3] linux-aio: implement io plug and unplug

2014-06-30 Thread Paolo Bonzini
Il 01/07/2014 03:05, Ming Lei ha scritto: > Busy waiting is not acceptable here (it can be unbounded if, for example, an > NFS server is on the other side of a network partition). You have to add a > bottom half to qemu_laio_state that calls ioq_submit, and schedule it after > calling io_getevent

Re: [Qemu-devel] [v5][PATCH 2/5] xen, gfx passthrough: create pseudo intel isa bridge

2014-06-30 Thread Michael S. Tsirkin
On Mon, Jun 30, 2014 at 08:34:46PM +0100, Stefano Stabellini wrote: > On Fri, 27 Jun 2014, Chen, Tiejun wrote: > > On 2014/6/25 17:58, Chen, Tiejun wrote: > > > On 2014/6/25 17:44, Michael S. Tsirkin wrote: > > > > On Wed, Jun 25, 2014 at 05:28:48PM +0800, Chen, Tiejun wrote: > > > > > On 2014/6/25

Re: [Qemu-devel] [PATCH fix for 2.1] makefile: Fix tools compile

2014-06-30 Thread Alexey Kardashevskiy
On 07/01/2014 11:51 AM, Alexey Kardashevskiy wrote: > The existing test whether "-lm" needs to be included or not is > insufficient as it reports false negative on Fedora20/ppc64. > As the result, qemu-nbd/qemu-io/qemu-img tools cannot compile. > > This replaces sin() with log() in the test. > >

Re: [Qemu-devel] [Xen-devel] [v5][PATCH 0/5] xen: add Intel IGD passthrough support

2014-06-30 Thread Michael S. Tsirkin
On Mon, Jun 30, 2014 at 03:31:05PM -0400, Ross Philipson wrote: > On 06/30/2014 03:22 PM, Stefano Stabellini wrote: > >On Mon, 30 Jun 2014, Michael S. Tsirkin wrote: > >>On Mon, Jun 30, 2014 at 03:24:58PM +0800, Chen, Tiejun wrote: > >>>On 2014/6/30 14:48, Michael S. Tsirkin wrote: > On Mon, Ju

Re: [Qemu-devel] [PATCH v5] ppc: spapr-rtas - implement os-term rtas call

2014-06-30 Thread Alexander Graf
> Am 01.07.2014 um 05:20 schrieb Nikunj A Dadhania : > > Alexander Graf writes: > >>> On 30.06.2014, at 17:49, Tyrel Datwyler >>> wrote: >>> On 06/30/2014 01:35 AM, Nikunj A Dadhania wrote: PAPR compliant guest calls this in absence of kdump. This finally reaches the guest an

Re: [Qemu-devel] [RFC] alpha qemu arithmetic exceptions

2014-06-30 Thread Al Viro
On Tue, Jul 01, 2014 at 05:34:45AM +0100, Al Viro wrote: > VAX operations are serious mess, but I'm not sure if we have them actually > used anywhere in Linux kernel or userland. Always possible, of course, but... Grr... Truncated mail, sorry. Missing part: _If_ we decide that we want CVTGQ w

Re: [Qemu-devel] [RFC] alpha qemu arithmetic exceptions

2014-06-30 Thread Al Viro
On Mon, Jun 30, 2014 at 09:56:35PM +0100, Al Viro wrote: > FWIW, it might be better to do what float64_to_int64_round_to_zero() is doing > - > i.e. > if (shift >= 0) { > if (shift < 64) > ret = frac << shift; > if (shift < 11 || a == LIT64(0x

[Qemu-devel] [PULL 2/5] sdhci: Fix misuse of qemu_free_irqs()

2014-06-30 Thread Andreas Färber
It does a g_free() on the pointer, so don't pass a local &foo reference. Reviewed-by: Peter Crosthwaite Reviewed-by: Peter Maydell Cc: qemu-sta...@nongnu.org Signed-off-by: Andreas Färber --- hw/sd/sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sd/sdhci.c b/

Re: [Qemu-devel] Adding memory region without specifying address

2014-06-30 Thread Alexander Graf
> Am 30.06.2014 um 23:47 schrieb "Stalley, Sean" : > > > >> -Original Message- >> From: Alexander Graf [mailto:ag...@suse.de] >> Sent: Monday, June 30, 2014 1:22 PM >> To: Stalley, Sean; Peter Crosthwaite >> Cc: qemu-devel@nongnu.org >> Subject: Re: [Qemu-devel] Adding memory region wi

[Qemu-devel] [PULL 3/5] hw: Fix qemu_allocate_irqs() leaks

2014-06-30 Thread Andreas Färber
Replace qemu_allocate_irqs(foo, bar, 1)[0] with qemu_allocate_irq(foo, bar, 0). This avoids leaking the dereferenced qemu_irq *. Cc: Markus Armbruster Reviewed-by: Peter Crosthwaite Reviewed-by: Peter Maydell Signed-off-by: Andreas Färber [PC Changes: * Applied change to instance in sh4/sh77

Re: [Qemu-devel] [PATCH v5] ppc: spapr-rtas - implement os-term rtas call

2014-06-30 Thread Nikunj A Dadhania
Alexander Graf writes: > On 30.06.2014, at 17:49, Tyrel Datwyler > wrote: > >> On 06/30/2014 01:35 AM, Nikunj A Dadhania wrote: >>> PAPR compliant guest calls this in absence of kdump. This finally >>> reaches the guest and can be handled according to the policies set by >>> higher level tools(

[Qemu-devel] [PULL 4/5] irq: Allocate IRQs individually

2014-06-30 Thread Andreas Färber
From: Peter Crosthwaite Allocate each IRQ individually on array allocations. This prepares for QOMification of IRQs, where pointers to individual IRQs may be taken and handed around for usage as QOM Links. The g_renew() scheme used here is too fragile and would break all existing links should an

[Qemu-devel] [PULL 5/5] irq: Slim conversion of qemu_irq to QOM

2014-06-30 Thread Andreas Färber
As a prequel to any big Pin refactoring plans, do an in-place conversion of qemu_irq to an Object, so that we can reference it in link<> properties. Signed-off-by: Andreas Färber [ PC Changes: * Removed array-alloctor ref counting logic (limit changes just to * single IRQ allocator) * Removed

[Qemu-devel] [PULL 1/5] qom: Remove parent pointer when unparenting

2014-06-30 Thread Andreas Färber
From: Peter Crosthwaite Certain parts of the QOM framework test this pointer to determine if an object is parented. Nuke it when the object is unparented to allow for reuse of an object after unparenting. Signed-off-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- qom/object.c | 1 + 1

[Qemu-devel] [PULL 0/5] QOM devices patch queue 2014-07-01

2014-06-30 Thread Andreas Färber
Hello Peter, This is my QOM (devices) patch queue. Please pull. Regards, Andreas Cc: Peter Maydell Cc: Anthony Liguori Cc: Peter Crosthwaite The following changes since commit 53a259da5697ec8a82463161e2e32ff942a08bc2: Merge remote-tracking branch 'remotes/awilliam/tags/vfio-pci-for-qemu

Re: [Qemu-devel] [Xen-devel] [v5][PATCH 0/5] xen: add Intel IGD passthrough support

2014-06-30 Thread Chen, Tiejun
On 2014/6/30 19:28, Michael S. Tsirkin wrote: On Mon, Jun 30, 2014 at 06:20:22PM +0800, Chen, Tiejun wrote: On 2014/6/30 17:55, Michael S. Tsirkin wrote: On Mon, Jun 30, 2014 at 05:38:21PM +0800, Chen, Tiejun wrote: On 2014/6/30 17:05, Michael S. Tsirkin wrote: On Mon, Jun 30, 2014 at 03:24:5

[Qemu-devel] Why devfn will be -1

2014-06-30 Thread Le Tan
Hi Jan, I use pci_setup_iommu() to setup a PCIIOMMUFunc for the q35 pci bus. In the iommu_fn, I print out the devfn parameter and find out that it sometimes will be -1. So what does it mean? The detail code is here: In mch_init() function, I write like this: PCIBus *pci_bus = PCI_BUS(qdev_get_pare

Re: [Qemu-devel] [Xen-devel] [v5][PATCH 0/5] xen: add Intel IGD passthrough support

2014-06-30 Thread Chen, Tiejun
On 2014/7/1 3:31, Ross Philipson wrote: On 06/30/2014 03:22 PM, Stefano Stabellini wrote: On Mon, 30 Jun 2014, Michael S. Tsirkin wrote: On Mon, Jun 30, 2014 at 03:24:58PM +0800, Chen, Tiejun wrote: On 2014/6/30 14:48, Michael S. Tsirkin wrote: On Mon, Jun 30, 2014 at 10:51:49AM +0800, Chen,

Re: [Qemu-devel] [v5][PATCH 2/5] xen, gfx passthrough: create pseudo intel isa bridge

2014-06-30 Thread Chen, Tiejun
On 2014/7/1 3:34, Stefano Stabellini wrote: On Fri, 27 Jun 2014, Chen, Tiejun wrote: On 2014/6/25 17:58, Chen, Tiejun wrote: On 2014/6/25 17:44, Michael S. Tsirkin wrote: On Wed, Jun 25, 2014 at 05:28:48PM +0800, Chen, Tiejun wrote: On 2014/6/25 17:21, Michael S. Tsirkin wrote: On Wed, Jun 2

Re: [Qemu-devel] [v5][PATCH 4/5] xen, gfx passthrough: create host bridge to passthrough

2014-06-30 Thread Chen, Tiejun
On 2014/7/1 3:42, Stefano Stabellini wrote: On Mon, 30 Jun 2014, Chen, Tiejun wrote: On 2014/6/29 20:14, Michael S. Tsirkin wrote: On Sun, Jun 29, 2014 at 03:56:10PM +0800, Chen, Tiejun wrote: On 2014/6/27 19:26, Paolo Bonzini wrote: Il 27/06/2014 10:34, Chen, Tiejun ha scritto: So how to

Re: [Qemu-devel] [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type

2014-06-30 Thread Chen, Tiejun
On 2014/6/30 19:18, Michael S. Tsirkin wrote: On Thu, Jun 19, 2014 at 05:53:51PM +0800, Tiejun Chen wrote: Originally the reason to probe ISA bridge instead of Dev31:Fun0 is to make graphics device passthrough work easy for VMM, that only need to expose ISA bridge to let driver know the real har

[Qemu-devel] [PATCH fix for 2.1] makefile: Fix tools compile

2014-06-30 Thread Alexey Kardashevskiy
The existing test whether "-lm" needs to be included or not is insufficient as it reports false negative on Fedora20/ppc64. As the result, qemu-nbd/qemu-io/qemu-img tools cannot compile. This replaces sin() with log() in the test. Signed-off-by: Alexey Kardashevskiy --- The bug was triggered b

[Qemu-devel] [RFC] Support vhd type VHD_DIFFERENCING

2014-06-30 Thread Ding xiao
Now qemu only supports vhd type VHD_FIXED and VHD_DYNAMIC, so qemu can't read snapshot volume of vhd, and can't support other storage features of vhd file. The RFC adds vhd type VHD_DIFFERENCING support for qemu. Ding xiao (1): Support vhd type VHD_DIFFERENCING block/vpc.c | 302 +

[Qemu-devel] [RFC PATCH v1] Support vhd type VHD_DIFFERENCING

2014-06-30 Thread Ding xiao
Now qemu only supports vhd type VHD_FIXED and VHD_DYNAMIC, so qemu can't read snapshot volume of vhd, and can't support other storage features of vhd file. this patch add read parent information in function "vpc_open", read bitmap in "vpc_read", and change bitmap in "vpc_write". Signed-off-by: Di

Re: [Qemu-devel] [PATCH]Fix a error in mc146818rtc.c

2014-06-30 Thread Lb peace
1)“ it's an automated output of perl simply changing one calling convention to another”.What do you mean... I can not find the point :) 2) The problem is : a.use QEMU to run linux-0.2.img with command qemu-system-i386 linux-0.2.img or sth. like that b.hwclock ,and we get a date1(2014-07

Re: [Qemu-devel] [PATCH v1 2/3] linux-aio: implement io plug and unplug

2014-06-30 Thread Ming Lei
On Tue, Jul 1, 2014 at 1:31 AM, Paolo Bonzini wrote: > Il 30/06/2014 17:47, Ming Lei ha scritto: > >> From: Ming Lei >> >> This patch implements .bdrv_io_plug and .bdrv_io_unplug >> callbacks for linux-aio Block Drivers, so that submitting >> I/O at batch can be supported on linux-aio. >> >> Sign

[Qemu-devel] [PATCH v4 10/33] target-arm: extend Aarch64 SCR.{FIQ|IRQ} handling

2014-06-30 Thread greg . bellows
From: Fabian Aggeler If EL3 is using Aarch64 IRQ/FIQ masking is ignored in all exception levels other than EL3 if SCR.{FIQ|IRQ} is set to 1 (routed to EL3). Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h | 98 +---

[Qemu-devel] [PATCH v4 17/33] target-arm: add MVBAR support

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Use MVBAR register as exception vector base address for exceptions taken to CPU monitor mode. Signed-off-by: Sergey Fedorov Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h| 1 + target-arm/helper.c | 15 +-- 2 files changed

[Qemu-devel] [PATCH v4 29/33] target-arm: make IFAR/DFAR banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) IFAR and DFAR have a secure and a non-secure instance. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows - v3 -> v4 - Revert to array-based notation of far_el in combination with v7

[Qemu-devel] [PATCH v4 08/33] target-arm: A32: Emulate the SMC instruction

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Implements SMC instruction in Aarch32 using the A32 syndrome. When executing SMC instruction from monitor CPU mode SCR.NS bit is reset. Signed-off-by: Sergey Fedorov Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/helper.c| 11 +++ ta

[Qemu-devel] [PATCH v4 05/33] target-arm: reject switching to monitor mode

2014-06-30 Thread greg . bellows
From: Sergey Fedorov ...from non-secure state. Signed-off-by: Sergey Fedorov Signed-off-by: Fabian Aggeler Reviewed-by: Edgar E. Iglesias Signed-off-by: Greg Bellows --- target-arm/helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index

[Qemu-devel] [PATCH v4 12/33] target-arm: use dedicated target_el function

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/helper.c | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 4233ae3..456b7e7 100644 --- a/target-arm/helper.c

[Qemu-devel] [PATCH v4 30/33] target-arm: make PAR banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) PAR has a secure and a non-secure instance. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows - v3 -> v4 - Fix par union/structure definition Signed-off-by: Greg Bellows --- target-a

[Qemu-devel] [PATCH v4 04/33] target-arm: add arm_is_secure() function

2014-06-30 Thread greg . bellows
From: Fabian Aggeler arm_is_secure() function allows to determine CPU security state if the CPU implements Security Extensions/EL3. arm_is_secure_below_el3() returns true if CPU is in secure state below EL3. Signed-off-by: Sergey Fedorov Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellow

[Qemu-devel] [PATCH v4 11/33] target-arm: add async excp target_el&mode function

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Adds a dedicated function for IRQ and FIQ exceptions to determine target_el and mode (Aarch32) according to tables in ARM ARMv8 and ARM ARM v7. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows -- v3 -> v4 - Fixed arm_phys_excp_target_el() 0/0/0 case t

[Qemu-devel] [PATCH v4 23/33] target-arm: add TTBR0_EL3 and make TTBR0/1 banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Add TTBR0 and maps secure/non-secure instance of ttbr0 and ttbr1 accordingly (translation table base register). Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h| 21 +++-- target-arm/helper.c | 46 +

[Qemu-devel] [PATCH v4 19/33] target-arm: insert Aarch32 cpregs twice into hashtable

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Prepare for cp register banking by inserting every cp register twice, once for secure world and once for non-secure world. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h | 14 +++--- target-arm/helper.c| 20 +++

[Qemu-devel] [PATCH v4 31/33] target-arm: make VBAR banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) VBAR has a secure and a non-secure instance, which are mapped to VBAR_EL1 and VBAR_EL3. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows v3 -> v4 - Fix vbar union/structure defini

[Qemu-devel] [PATCH v4 03/33] target-arm: increase arrays of registers R13 & R14

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Increasing banked_r13 and banked_r14 to store LR_mon and SP_mon (bank index 7). Signed-off-by: Fabian Aggeler Reviewed-by: Edgar E. Iglesias Signed-off-by: Greg Bellows --- target-arm/cpu.h | 4 ++-- target-arm/machine.c | 4 ++-- 2 files changed, 4 insertions(+), 4

Re: [Qemu-devel] core dump with drive-mirror

2014-06-30 Thread Eric Blake
On 06/30/2014 05:16 PM, Eric Blake wrote: > I'm trying to track down a core dump with the QMP drive-mirror command. Looks like the bug is related to a base image that is not a multiple of a cluster size. > > # in one terminal: > cd /tmp > rm -f base.img snap1.img snap2.img copy.img > > # base.i

[Qemu-devel] [PATCH v4 15/33] target-arm: add NSACR register

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Implements NSACR register with corresponding read/write functions for ARMv7 and ARMv8. Signed-off-by: Sergey Fedorov Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h| 6 + target-arm/helper.c | 68 +++

[Qemu-devel] [PATCH v4 01/33] target-arm: add cpu feature EL3 to CPUs with Security Extensions

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Set ARM_FEATURE_EL3 feature for CPUs that implement Security Extensions. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.c | 4 1 file changed, 4 insertions(+) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index d77be99..46ee1fe 10064

Re: [Qemu-devel] core dump with drive-mirror

2014-06-30 Thread Eric Blake
On 06/30/2014 05:16 PM, Eric Blake wrote: > I'm trying to track down a core dump with the QMP drive-mirror command. Oh, and a followup question: I discovered that if I try to use drive-mirror to a file that is not already large enough, the job starts successfully but fails at the point where it e

[Qemu-devel] core dump with drive-mirror

2014-06-30 Thread Eric Blake
I'm trying to track down a core dump with the QMP drive-mirror command. # in one terminal: cd /tmp rm -f base.img snap1.img snap2.img copy.img # base.img <- snap1.img <- snap2.img; intentionally populating base.img # with a qcow2 header, but treating it as raw data qemu-img create -f qcow2 base.i

[Qemu-devel] [PATCH v4 28/33] target-arm: make DFSR banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) DFSR has a secure and a non-secure instance. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- v3 -> v4 - Reverted esr/dfsr back to array-based notation as a union with v7 naming.

[Qemu-devel] [PATCH v4 21/33] target-arm: add SCTLR_EL3 and make SCTLR banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Implements SCTLR_EL3 and uses secure/non-secure instance when needed. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- hw/arm/pxa2xx.c| 2 +- target-arm/cpu.c | 5 ++-- target-arm/cpu.h | 13 - target-arm/helper.c| 78 +++

[Qemu-devel] [PATCH v4 27/33] target-arm: make IFSR banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) IFSR has a secure and a non-secure instance. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h| 10 +- target-arm/helper.c | 9 + 2 files changed, 14 inser

[Qemu-devel] [PATCH v4 26/33] target-arm: make DACR banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) DACR has a secure and a non-secure instance. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- hw/arm/pxa2xx.c | 2 +- target-arm/cpu.h| 13 +++-- target-arm/helper.c | 19

[Qemu-devel] [PATCH v4 20/33] target-arm: arrayfying fieldoffset for banking

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Prepare ARMCPRegInfo to support specifying two fieldoffsets per register definition. This will allow us to keep one register definition for banked registers (different offsets for secure/ non-secure world). Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- tar

[Qemu-devel] [PATCH v4 25/33] target-arm: make c2_mask and c2_base_mask banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Since TTBCR is banked we will bank c2_mask and c2_base_mask too. This avoids recalculating them on switches from secure to non-secure world. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h| 10 -- target-arm/helper.c | 15 +++

[Qemu-devel] [PATCH v4 33/33] target-arm: Limit migration of duplicate CP regs

2014-06-30 Thread greg . bellows
From: Greg Bellows This patch adds code to mark duplicate CP register registrations as NO_MIGRATE to avoid duplicate migrations. Signed-off-by: Greg Bellows --- target-arm/helper.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/target-arm/helper.c b/target-arm/

[Qemu-devel] [PATCH v4 24/33] target-arm: add TCR_EL3 and make TTBCR banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Adds TCR_EL3 system register and makes existing TTBCR banked. Adjust translation functions to use TCR/TTBCR instance depending on CPU state. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h| 11 ++- target-arm/helper.c | 50 ++

[Qemu-devel] [PATCH v4 22/33] target-arm: make CSSELR banked

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Rename CSSELR (cache size selection register) and add secure instance (Aarch32). Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h| 10 +- target-arm/helper.c | 9 + 2 files changed, 14 insertions(+), 5 deletions(-) diff

[Qemu-devel] [PATCH v4 16/33] target-arm: add SDER definition

2014-06-30 Thread greg . bellows
From: Sergey Fedorov Signed-off-by: Sergey Fedorov Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h| 1 + target-arm/helper.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 4625088..7aecb0f 100644 --- a/targe

[Qemu-devel] [PATCH v4 32/33] target-arm: make c13 cp regs banked (FCSEIDR, ...)

2014-06-30 Thread greg . bellows
From: Fabian Aggeler When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) FCSEIDR, CONTEXTIDR, TPIDRURW, TPIDRURO and TPIDRPRW have a secure and a non-secure instance. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows -- v3 -> v4 - Fix tpidrprw mapping Signe

[Qemu-devel] [PATCH v4 18/33] target-arm: add macros to access banked registers

2014-06-30 Thread greg . bellows
From: Fabian Aggeler If EL3 is in Aarch32 state certain cp registers are banked (secure and non-secure instance). When reading or writing to coprocessor registers the following macros can be used. If the CPU is in monitor mode SCR.NS bit determines which instance is going to be accessed. - USE_S

[Qemu-devel] [PATCH v4 07/33] target-arm: add non-secure Translation Block flag

2014-06-30 Thread greg . bellows
From: Sergey Fedorov This patch is based on idea found in patch at git://github.com/jowinter/qemu-trustzone.git f3d955c6c0ed8c46bc0eb10b634201032a651dd2 by Johannes Winter . This flag prevents QEMU from executing TCG code generated for other CPU security state. It also allows to generate differe

[Qemu-devel] [PATCH v4 13/33] target-arm: implement IRQ/FIQ routing to Monitor mode

2014-06-30 Thread greg . bellows
From: Fabian Aggeler SCR.{IRQ/FIQ} bits allow to route IRQ/FIQ exceptions to monitor CPU mode. When taking IRQ exception to monitor mode FIQ exception is additionally masked. Signed-off-by: Sergey Fedorov Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/helper.c | 9 +

[Qemu-devel] [PATCH v4 09/33] target-arm: extend Aarch32 async excp masking

2014-06-30 Thread greg . bellows
From: Fabian Aggeler This patch extends arm_excp_unmasked() according to ARM ARMv7 and ARM ARMv8 (all EL running in Aarch32) and adds comments. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.h | 77 1 file

[Qemu-devel] [PATCH v4 14/33] target-arm: Respect SCR.FW, SCR.AW and SCTLR.NMFI

2014-06-30 Thread greg . bellows
From: Fabian Aggeler bits when modifying CPSR. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- v3 -> v4 - Fixed up conditions for ignoring CPSR.A/F updates by isolating to v7 and checking for the existence of EL3 and non-existence of EL2. Signed-off-by: Greg Bello

[Qemu-devel] [PATCH v4 00/33] target-arm: add Security Extensions for CPUs

2014-06-30 Thread greg . bellows
From: Greg Bellows Updated Fabian's v3 patchset for review comments. This patchset includes changes in support of the security extension on v7 aarch32 with hooks for later enabling v8 aarch64. The patches are built upon and therefore dependent on v3 of Xilinx's second round of EL2/3 patches.

[Qemu-devel] [PATCH v4 06/33] target-arm: make arm_current_pl() return PL3

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Make arm_current_pl() return PL3 for secure PL1 and monitor mode. Increase MMU modes since mmu_index is directly infered from arm_ current_pl(). Changes assertion in arm_el_is_aa64() to allow EL3. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cp

[Qemu-devel] [PATCH v4 02/33] target-arm: move Aarch32 SCR into security reglist

2014-06-30 Thread greg . bellows
From: Fabian Aggeler Define a new ARM CP register info list for the ARMv7 Security Extension feature. Register that list only for ARM cores with Security Extension/EL3 support. Moving Aarch32 SCR into Security Extension register group. Signed-off-by: Sergey Fedorov Signed-off-by: Fabian Aggeler

Re: [Qemu-devel] Qemu only uses a Qemu File to communicate in two hosts?

2014-06-30 Thread Eric Blake
On 06/30/2014 03:58 PM, Gary Jordan wrote: > Hi Eric, [please don't top-post in technical lists] > > Could I find a way for two guests in two hosts to communicate? Like qemu > starts one vm in Host 1 and qemu also starts a vm in Host 2, the vm can > share their memory. Is there some existed w

Re: [Qemu-devel] Qemu Shared memory

2014-06-30 Thread Eric Blake
On 06/30/2014 10:34 AM, Gary Jordan wrote: > Dear developers, > > I want to design a shared memory for Vm in qemu. So, I also need to design > a mechanism to let two vms communicate. Is there already some module in > Qemu ? It sounds like you are asking about ivshmem, which has already been discu

Re: [Qemu-devel] Qemu only uses a Qemu File to communicate in two hosts?

2014-06-30 Thread Gary Jordan
Hi Eric, Could I find a way for two guests in two hosts to communicate? Like qemu starts one vm in Host 1 and qemu also starts a vm in Host 2, the vm can share their memory. Is there some existed way to do that, like remote IPC in qemu? Thanks for your reply. ---Gary 2014-06-30 17:08 GMT-04

[Qemu-devel] Qemu Shared memory

2014-06-30 Thread Gary Jordan
Dear developers, I want to design a shared memory for Vm in qemu. So, I also need to design a mechanism to let two vms communicate. Is there already some module in Qemu ? I saw that qemu could support live migration. Can the vm also access the previous machine after migration? Thanks. Gary

[Qemu-devel] [RESEND PATCH v5 3/3] qga: Disable unsupported commands by default

2014-06-30 Thread Tomoki Sekiyama
Currently management softwares cannot know whether a qemu-ga command is supported or not on the running platform until they actually execute it. This patch disables unsupported commands at launch time of qemu-ga, so that management softwares can check whether they are supported from 'enabled' prope

[Qemu-devel] [RESEND PATCH v5 1/3] qga: Add guest-fsfreeze-freeze-list command

2014-06-30 Thread Tomoki Sekiyama
If an array of mount point paths is specified as 'mountpoints' argument of guest-fsfreeze-freeze-list, qemu-ga will only freeze the file systems mounted on specified paths in Linux guests. Otherwise, it works as the same way as guest-fsfreeze-freeze. This would be useful when the host wants to crea

[Qemu-devel] [RESEND PATCH v5 2/3] qga: Add guest-get-fsinfo command

2014-06-30 Thread Tomoki Sekiyama
Add command to get mounted filesystems information in the guest. The returned value contains a list of mountpoint paths and corresponding disks info such as disk bus type, drive address, and the disk controllers' PCI addresses, so that management layer such as libvirt can resolve the disk backends.

[Qemu-devel] [RESEND PATCH v5 0/3] qga: Add guest-fsfreeze-freeze-list command

2014-06-30 Thread Tomoki Sekiyama
Hi, As patch 3/3 was missing in the last post, I'm resending this patchset. === This is v5 patch for qemu-ga to add functions to freeze specific file systems mounted in a guest. Changes since v4: - PATCH 2: fix coding styles (spaces around operators) make decode_mntname() more gener

Re: [Qemu-devel] [RFC PATCH v3] numa: enable sparse node numbering

2014-06-30 Thread Eduardo Habkost
On Mon, Jun 30, 2014 at 11:26:10AM -0700, Nishanth Aravamudan wrote: [...] > > > -if (i == nb_numa_nodes) { > > > +if (i == max_numa_node) { > > > for (i = 0; i < max_cpus; i++) { > > > -set_bit(i, numa_info[i % nb_numa_nodes].node_cpu); > > > +

Re: [Qemu-devel] Adding memory region without specifying address

2014-06-30 Thread Stalley, Sean
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Monday, June 30, 2014 1:22 PM > To: Stalley, Sean; Peter Crosthwaite > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] Adding memory region without specifying address > > > On 30.06.14 19:53, Stalley, Sean

[Qemu-devel] [RFC PATCH v4] numa: enable sparse node numbering on ppc

2014-06-30 Thread Nishanth Aravamudan
Sparse node numbering occurs on powerpc in practice under PowerVM. In order to emulate the same NUMA topology under qemu, the assumption that NUMA nodes are linearly ordered has to be removed. qemu was recently modified to reject requests for sparse NUMA node numbering. Leverage the present field

Re: [Qemu-devel] Qemu only uses a Qemu File to communicate in two hosts?

2014-06-30 Thread Eric Blake
On 06/30/2014 03:02 PM, Gary Jordan wrote: > Hi, > Does Qemu only use the QEMUFile to load the state of VM after migration? Normally, yes. Migration must work as a one-way protocol in the common case when used with default options. There is a migration mode that uses RDMA which requires bi-direc

[Qemu-devel] Qemu only uses a Qemu File to communicate in two hosts?

2014-06-30 Thread Gary Jordan
Hi, Does Qemu only use the QEMUFile to load the state of VM after migration? Is there a way for two vm guests to communicate like two threads or processes? Gary

Re: [Qemu-devel] [RFC] alpha qemu arithmetic exceptions

2014-06-30 Thread Al Viro
On Mon, Jun 30, 2014 at 11:39:43AM -0700, Richard Henderson wrote: > Looks good. > > I've split it up into a couple of smaller patches, made some sylistic tweaks > and pushed it to > > git://github.com/rth7680/qemu.git axp-next > > I'm starting to do some testing now, but a glance though woul

[Qemu-devel] [PATCH v2] e1000: clean up phyreg_writeops/set_phy_ctrl

2014-06-30 Thread Gabriel L. Somlo
Make phyreg_writeops responsible for actually writing their respective phy registers. The only current instance of phyreg_writeops is the set_phy_ctrl() function, which we modify to actually write the register, while also correctly handling reserved and self-clearing bits. have_autoneg() does not

Re: [Qemu-devel] Adding memory region without specifying address

2014-06-30 Thread Alexander Graf
On 30.06.14 19:53, Stalley, Sean wrote: Thanks for the quick response! Sorry for my belated reply... -Original Message- From: peter.crosthwa...@petalogix.com [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite Sent: Friday, June 27, 2014 6:26 PM To: Stalley, Sean; A

Re: [Qemu-devel] [PATCH]Fix a error in mc146818rtc.c

2014-06-30 Thread Alex Bligh
On 30 Jun 2014, at 20:53, Lb peace wrote: > If you use hwclock in guest os ,you will find the result of hwclock isn't > changed after changing host os's clock. > I find this issue is generated in this patch: I find it hard to believe that the patch you mention is the problem, as it's an autom

[Qemu-devel] [PATCH]Fix a error in mc146818rtc.c

2014-06-30 Thread Lb peace
If you use hwclock in guest os ,you will find the result of hwclock isn't changed after changing host os's clock. I find this issue is generated in this patch: http://lists.gnu.org/archive/html/qemu-devel/2013-08/msg03353.html Before this patch,the result will be changed if you change host's clock

Re: [Qemu-devel] [v5][PATCH 4/5] xen, gfx passthrough: create host bridge to passthrough

2014-06-30 Thread Stefano Stabellini
On Mon, 30 Jun 2014, Chen, Tiejun wrote: > On 2014/6/29 20:14, Michael S. Tsirkin wrote: > > On Sun, Jun 29, 2014 at 03:56:10PM +0800, Chen, Tiejun wrote: > > > On 2014/6/27 19:26, Paolo Bonzini wrote: > > > > Il 27/06/2014 10:34, Chen, Tiejun ha scritto: > > > > > > > > > > > > > > > So how to s

Re: [Qemu-devel] [PATCH 1/5] docs: Specification for the image fuzzer

2014-06-30 Thread Eric Blake
On 06/30/2014 05:48 AM, Maria Kustova wrote: > 'Overall fuzzer requirements' chapter contains the current product vision and > features done and to be done. This chapter is still in progress. > > Signed-off-by: Maria Kustova > --- > tests/image-fuzzer/docs/image-fuzzer.txt | 176 > +

  1   2   3   4   >