[Qemu-devel] [PATCH v4 1/1] intel_iommu: Add support for translation for devices behind bridges

2015-09-26 Thread Knut Omang
- Use a hash table indexed on bus pointers to store information about buses instead of using the bus numbers. Bus pointers are stored in a new VTDBus struct together with the vector of device address space pointers indexed by devfn. - The bus number is still used for lookup for selective SID

[Qemu-devel] [PATCH v4 0/1] intel_iommu: Add support for translation for devices behind bridges

2015-09-26 Thread Knut Omang
This patch set has been completely reimplemented according to ideas from the discussion of v2. It still solves the same problem, but does so only within the Intel IOMMU code and Q35, without changing the IOMMU interface. This eliminates the need for any separate interface change patch. This is

Re: [Qemu-devel] [PATCH 5/7] memory: Allow replay of IOMMU mapping notifications

2015-09-26 Thread David Gibson
On Fri, Sep 25, 2015 at 02:04:14PM +0200, Paolo Bonzini wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > > On 25/09/2015 13:33, David Gibson wrote: > > 1) Is there a case where using the no-replay functions makes > > sense? > > > > I'm not sure. I think vfio is the only user

[Qemu-devel] Triggering two arm processors from same interrupt (A9 and M3)

2015-09-26 Thread mar.krzeminski
Hello again, My next question is still related with M3 and A9 board what I want to model. This time my peripheral has some interrupts that are connected both to A9 processor(gic), and M3 processor (nvic). Additionally those interrupts have same number. Currently I use only two in my model so I

[Qemu-devel] [PATCH v3] cpu-exec: Fix compiler warning (-Werror=clobbered)

2015-09-26 Thread Stefan Weil
Reloading of local variables after sigsetjmp is only needed for some buggy compilers. The code which should reload these variables causes compiler warnings with gcc 4.7 when compiler optimizations are enabled: cpu-exec.c:204:15: error: variable ‘cpu’ might be clobbered by ‘longjmp’ or ‘vfork’

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Add real CDROM menu item

2015-09-26 Thread Programmingkid
On Sep 26, 2015, at 1:45 AM, Namsun Ch'o wrote: >> Add a menu item to the Machine menu called "Use Real CDROM". It gives the >> user the ability to use a real CDROM with QEMU by simply selecting a menu >> item. > >> NSASCIIStringEncoding]; >> +qmp_change_blockdev(device, "/dev/cdrom",

Re: [Qemu-devel] [PATCH v3] cpu-exec: Fix compiler warning (-Werror=clobbered)

2015-09-26 Thread Peter Maydell
On 26 September 2015 at 08:33, Dimitry Andric wrote: > On 26 Sep 2015, at 13:23, Stefan Weil wrote: >> >> Reloading of local variables after sigsetjmp is only needed for some >> buggy compilers. > > I don't think the compilers are buggy; any non-volatile local

[Qemu-devel] [PATCH 03/10][TRIVIAL] escc: add to input category

2015-09-26 Thread Laurent Vivier
ESCC is a serial port controller, so add it to the input category. Signed-off-by: Laurent Vivier --- hw/char/escc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/char/escc.c b/hw/char/escc.c index ba653ef..9816154 100644 --- a/hw/char/escc.c +++ b/hw/char/escc.c @@

[Qemu-devel] [PATCH 07/10][TRIVIAL] uninorth: add to bridge category

2015-09-26 Thread Laurent Vivier
Uninorth is the mac99 PCI host controller, so add it to the bridge category. Signed-off-by: Laurent Vivier --- hw/pci-host/uninorth.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/pci-host/uninorth.c b/hw/pci-host/uninorth.c index f0144eb..215b64f 100644 ---

[Qemu-devel] [PATCH 10/10][TRIVIAL] openpic: add to misc category

2015-09-26 Thread Laurent Vivier
openpic is a programmable interrupt controller, so add it to the misc category. Signed-off-by: Laurent Vivier --- hw/intc/openpic.c | 1 + hw/intc/openpic_kvm.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/intc/openpic.c b/hw/intc/openpic.c index

Re: [Qemu-devel] Triggering two arm processors from same interrupt (A9 and M3)

2015-09-26 Thread Peter Crosthwaite
On Sat, Sep 26, 2015 at 9:08 AM, Peter Maydell wrote: > On 26 September 2015 at 01:54, mar.krzeminski > wrote: >> Hello again, >> >> My next question is still related with M3 and A9 board what I want to model. >> This time my peripheral has

[Qemu-devel] [PATCH 00/10][TRIVIAL] Define categories for some PPC devices

2015-09-26 Thread Laurent Vivier
Some PPC devices appear uncategorized in the output of "-device ?". This series tries to categorize some of them. Laurent Vivier (10): adb: add to input category cmd646: add to storage category escc: add to input category grackle: add to bridge category cuda: add to bridge category

[Qemu-devel] [PATCH 08/10][TRIVIAL] macio: add to bridge category

2015-09-26 Thread Laurent Vivier
macio is a bridge between the PCI bus and the Mac nvram, IDE controller and PIC, so add it to the bridge category. Signed-off-by: Laurent Vivier --- hw/misc/macio/macio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c index

[Qemu-devel] [PATCH 01/10][TRIVIAL] adb: add to input category

2015-09-26 Thread Laurent Vivier
The Apple Desktop Bus is used to connect a keyboard and a mouse, so add it to the input category. Signed-off-by: Laurent Vivier --- hw/input/adb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/input/adb.c b/hw/input/adb.c index a18eea2..09eead9 100644 ---

[Qemu-devel] [PATCH 09/10][TRIVIAL] macio-nvram: add to misc category

2015-09-26 Thread Laurent Vivier
The macio nvram is a non volatile RAM, so add it the misc category. Signed-off-by: Laurent Vivier --- hw/nvram/mac_nvram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/nvram/mac_nvram.c b/hw/nvram/mac_nvram.c index d35f8a3..9f16566 100644 --- a/hw/nvram/mac_nvram.c

Re: [Qemu-devel] [PATCH V7 2/2] sdhci: Split sdhci.h for public and internal device usage

2015-09-26 Thread Peter Crosthwaite
On Fri, Sep 25, 2015 at 9:53 AM, Sai Pavan Boddu wrote: > Split sdhci.h into pubilc version (i.e include/hw/sd/sdhci.h) and > internal version (i.e hw/sd/sdhci-interna.h) based on register > declarations and object declaration. > > Signed-off-by: Sai Pavan Boddu

[Qemu-devel] [PATCH 05/10][TRIVIAL] cuda: add to bridge category

2015-09-26 Thread Laurent Vivier
Cuda is a bridge between PowerMac system bus and the ADB controller, real-time clock, pram and the power management unit. So add it to the bridge category. Signed-off-by: Laurent Vivier --- hw/misc/macio/cuda.c | 1 + 1 file changed, 1 insertion(+) diff --git

[Qemu-devel] [PATCH 06/10][TRIVIAL] macio-ide: add to storage category

2015-09-26 Thread Laurent Vivier
macio-ide is an IDE controller, so add it to the storage category. Signed-off-by: Laurent Vivier --- hw/ide/macio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 66ac2ba..893c9b9 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@

Re: [Qemu-devel] [RFC v5 1/6] exec.c: Add new exclusive bitmap to ram_list

2015-09-26 Thread Richard Henderson
On 09/24/2015 01:32 AM, Alvise Rigo wrote: > +if (cpu == smp_cpus) { > +if (smp_cpus >= EXCL_BITMAP_CELL_SZ) { > +return bitmap[EXCL_BITMAP_GET_BYTE_OFFSET(addr)]; > +} else { > +return bitmap[EXCL_BITMAP_GET_BYTE_OFFSET(addr)] & > +

Re: [Qemu-devel] [PATCH] linux-user/syscall_defs.h: Sync the latest si_code from Linux kernel

2015-09-26 Thread Peter Maydell
On 25 September 2015 at 21:10, wrote: > From: Chen Gang > > They content several new macro members, also contents TARGET_N*. > > Signed-off-by: Chen Gang > --- > linux-user/syscall_defs.h | 44

[Qemu-devel] [PATCH 04/10][TRIVIAL] grackle: add to bridge category

2015-09-26 Thread Laurent Vivier
Grackle is the PCI host controller of oldworld powermac, so add it to the bridge category. Signed-off-by: Laurent Vivier --- hw/pci-host/grackle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c index bfe707a..ea31b72 100644

Re: [Qemu-devel] [PATCH 3/3] Target-ppc: Remove unnecessary variable

2015-09-26 Thread Eric Blake
On 09/25/2015 02:37 AM, Shraddha Barke wrote: > Compress lines and remove the variable. > > +++ b/target-ppc/kvm.c > @@ -1782,8 +1782,7 @@ uint32_t kvmppc_get_tbfreq(void) > > ns++; > > -retval = atoi(ns); > -return retval; > +return atoi(ns); atoi() is lousy; it cannot

[Qemu-devel] [PATCH 02/10][TRIVIAL] cmd646: add to storage category

2015-09-26 Thread Laurent Vivier
cmd646 is an IDE controller, so add it to the storage category. Signed-off-by: Laurent Vivier --- hw/ide/cmd646.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 66fb9d9..27f3da2 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Add real CDROM menu item

2015-09-26 Thread Namsun Ch'o
> Actually on Mac OS X, /dev/cdrom always points to the optical drive. > It is how QEMU is programmed. Is this only for Mac? I must have missed that.

[Qemu-devel] [PATCH] fw_cfg: insert string blobs via qemu cmdline

2015-09-26 Thread Gabriel L. Somlo
Allow users to provide custom fw_cfg blobs with ascii string payloads specified directly on the qemu command line. Suggested-by: Jordan Justen Suggested-by: Laszlo Ersek Signed-off-by: Gabriel Somlo --- docs/specs/fw_cfg.txt | 5

Re: [Qemu-devel] [PATCH v5 07/46] qapi: Don't pass pre-existing error to later call

2015-09-26 Thread Eric Blake
On 09/24/2015 10:14 AM, Eric Blake wrote: >>> >>> visit_start_implicit_struct(m, (void **)obj, sizeof(FOO), ); >>> if (!err) { >>> visit_type_FOO_fields(m, obj, ); >>> visit_end_implicit_struct(m, err ? NULL : ); >>> } >>> error_propagate(errp,

Re: [Qemu-devel] [PATCH v5 07/46] qapi: Don't pass pre-existing error to later call

2015-09-26 Thread Eric Blake
On 09/24/2015 08:58 AM, Markus Armbruster wrote: > Eric Blake writes: > >> Due to the existing semantics of the error_set() family, >> generated sequences in the qapi visitors such as: >> >> visit_start_implicit_struct(m, (void **)obj, sizeof(FOO), ); >> if (!err)

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Add real CDROM menu item

2015-09-26 Thread Programmingkid
On Sep 26, 2015, at 6:49 PM, Namsun Ch'o wrote: >> Actually on Mac OS X, /dev/cdrom always points to the optical drive. >> It is how QEMU is programmed. > > Is this only for Mac? I must have missed that. Yes, it is for the Macintosh's cocoa interface.

Re: [Qemu-devel] [PATCH] linux-user/syscall_defs.h: Sync the latest si_code from Linux kernel

2015-09-26 Thread Chen Gang
On 9/27/15 00:06, Peter Maydell wrote: > On 25 September 2015 at 21:10, wrote: >> From: Chen Gang >> >> They content several new macro members, also contents TARGET_N*. >> >> Signed-off-by: Chen Gang >> --- >>

[Qemu-devel] [PATCH] tilegx: Implement tilegx signal features

2015-09-26 Thread gang . chen . 5i5j
From: Chen Gang After this patch, tilegx can handle raise instruction succesfully. Signed-off-by: Chen Gang --- linux-user/signal.c | 171 +++- linux-user/tilegx/syscall.h | 4 ++

Re: [Qemu-devel] Triggering two arm processors from same interrupt (A9 and M3)

2015-09-26 Thread Peter Maydell
On 26 September 2015 at 01:54, mar.krzeminski wrote: > Hello again, > > My next question is still related with M3 and A9 board what I want to model. > This time my peripheral has some interrupts that are connected both to A9 > processor(gic), > and M3 processor (nvic).

Re: [Qemu-devel] [PATCH v3] cpu-exec: Fix compiler warning (-Werror=clobbered)

2015-09-26 Thread Dimitry Andric
On 26 Sep 2015, at 13:23, Stefan Weil wrote: > > Reloading of local variables after sigsetjmp is only needed for some > buggy compilers. I don't think the compilers are buggy; any non-volatile local variable that is changed between setjmp() and longjmp() is indeterminate.

Re: [Qemu-devel] [PATCH v5 07/46] qapi: Don't pass pre-existing error to later call

2015-09-26 Thread Eric Blake
On 09/26/2015 03:41 PM, Eric Blake wrote: > On 09/24/2015 08:58 AM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> Due to the existing semantics of the error_set() family, >>> generated sequences in the qapi visitors such as: >>> >>> visit_start_implicit_struct(m,

[Qemu-devel] [PATCH] ui/cocoa.m: blinky mouse cursor fix

2015-09-26 Thread Programmingkid
The mouse cursor can become blinky when being moved a lot. This patch fixes that problem by issuing the redraw sooner. Signed-off-by: John Arbuckle --- ui/cocoa.m |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index

[Qemu-devel] feature idea: allow user to run custom scripts

2015-09-26 Thread Programmingkid
Would you be open to a feature that allows the user to select and run a custom file that has commands in it that would run in the monitor?

Re: [Qemu-devel] [PATCH v2] hw/misc/zynq_slcr: Change CPU clock rate for Linux boots

2015-09-26 Thread Peter Crosthwaite
On Mon, Sep 14, 2015 at 6:17 AM, Nathan Rossi wrote: > On Mon, Sep 14, 2015 at 10:07 PM, Peter Maydell > wrote: >> On 13 September 2015 at 23:42, Peter Crosthwaite >> wrote: >>> On Sun, Sep 13, 2015 at 1:47 PM, Peter

Re: [Qemu-devel] [PATCH v2] hw/misc/zynq_slcr: Change CPU clock rate for Linux boots

2015-09-26 Thread Peter Crosthwaite
On Sat, Sep 12, 2015 at 2:06 PM, Guenter Roeck wrote: > The Linux kernel only accepts 34 Khz and 67 Khz clock rates, and > may crash if the actual clock rate is too low. The clock rate used to be > (ps-clk-frequency * 26 / 4), which resulted in a CPU frequency of >