[Qemu-devel] [V6 0/4] AMD IOMMU

2016-02-21 Thread David Kiarie
Hello there, Repost, AMD IOMMU patches version 6. Changes since version 5 -Fixed macro formating issues -changed occurences of IO MMU to IOMMU for consistency -Fixed capability registers duplication -Rebased to current master David Kiarie (4): hw/i386: Introduce AMD IOMMU hw/core: Add

Re: [Qemu-devel] [PATCH] qga: implement the guest-set-vcpus for windows

2016-02-21 Thread Michael S. Tsirkin
On Mon, Nov 02, 2015 at 04:49:48PM +0200, Gal Hammer wrote: > Signed-off-by: Gal Hammer Seems to make sense. Acked-by: Michael S. Tsirkin mdroth, any feedback on this one? > --- > qga/commands-win32.c | 66 >

Re: [Qemu-devel] [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-21 Thread Gabriel L. Somlo
On Sun, Feb 21, 2016 at 03:10:30PM +0200, Michael S. Tsirkin wrote: > On Sun, Feb 21, 2016 at 08:06:17AM -0500, Gabriel L. Somlo wrote: > > > > > > > > > +#if !(defined(FW_CFG_CTRL_OFF) && defined(FW_CTRL_DATA_OFF)) > > > > +# if (defined(CONFIG_ARM) || defined(CONFIG_ARM64)) > > > > +# define

Re: [Qemu-devel] [PATCH 05/13] acpi: add DMAR scope definition for root IOAPIC

2016-02-21 Thread Jan Kiszka
On 2016-02-21 16:54, Marcel Apfelbaum wrote: > On 02/21/2016 03:40 PM, Jan Kiszka wrote: >> On 2016-02-21 13:08, Marcel Apfelbaum wrote: >>> On 02/21/2016 01:38 PM, Marcel Apfelbaum wrote: On 02/19/2016 05:30 AM, Peter Xu wrote: > To enable interrupt remapping for intel IOMMU device, each

Re: [Qemu-devel] [PATCH 11/13] intel_iommu: add IR translation faults defines

2016-02-21 Thread Marcel Apfelbaum
On 02/19/2016 05:30 AM, Peter Xu wrote: Adding translation fault definitions for interrupt remapping. Please refer to VT-d spec section 7.1. Signed-off-by: Peter Xu --- hw/i386/intel_iommu_internal.h | 15 +++ 1 file changed, 15 insertions(+) diff --git

Re: [Qemu-devel] [PATCH 05/13] acpi: add DMAR scope definition for root IOAPIC

2016-02-21 Thread Marcel Apfelbaum
On 02/21/2016 03:40 PM, Jan Kiszka wrote: On 2016-02-21 13:08, Marcel Apfelbaum wrote: On 02/21/2016 01:38 PM, Marcel Apfelbaum wrote: On 02/19/2016 05:30 AM, Peter Xu wrote: To enable interrupt remapping for intel IOMMU device, each IOAPIC device in the system reported via ACPI MADT must be

Re: [Qemu-devel] Can't compile QEMU 2.5.0 on Arch Linux ARM

2016-02-21 Thread Peter Maydell
On 21 February 2016 at 10:30, Xavier de Rauville wrote: > Greetings > > I am attempting to compile QEMU for Arch Liux ARM using the build files from > here: > https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/qemu > > I am targeting the

Re: [Qemu-devel] [PATCH RFC V5 0/9] Implement GIC-500 from GICv3 family for arm64

2016-02-21 Thread Peter Maydell
On 21 February 2016 at 12:30, Shlomo Pongratz wrote: > Working of re-basing the GICv3 I've noticed in the mailing list Pavel's > patch series named "GICv3 live migration support". This patch series > modifies GICv3 structures. I can see that this patch series was not

Re: [Qemu-devel] Regarding Intel IGD passthru support for QEMU/KVM

2016-02-21 Thread Raghavan Santhanam
Hi All, Here is my most recent successful and more complete Android Sensor Emulation(Intel-IGD-passsthru ~ QEMU/KVM) update by me. Watch it in action : https://www.youtube.com/watch?v=vdcOS247F-4 **== Android Sensor Emulation, fully UNLEASHED! ==** - Fueled by GoogleNexus5 - Powered by Intel

[Qemu-devel] [PATCH] vhost-user: don't merge regions with different fds

2016-02-21 Thread Michael S. Tsirkin
vhost currently merges regions with contiguious virtual and physical addresses. This breaks for vhost-user since that also needs fds to match. Add a vhost_ops entry to compare the fds for vhost-user only. Cc: qemu-sta...@nongnu.org Cc: Victor Kaplansky Signed-off-by:

[Qemu-devel] Can't compile QEMU 2.5.0 on Arch Linux ARM

2016-02-21 Thread Xavier de Rauville
Greetings I am attempting to compile QEMU for Arch Liux ARM using the build files from here: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/qemu I am targeting the ARMv7hf architecture. Unfortunately, I am getting an error during the build process. I created a log

Re: [Qemu-devel] [PATCH v2 7/9] i.MX: Add i.MX6 SOC implementation.

2016-02-21 Thread Jean-Christophe DUBOIS
Le 21/02/2016 04:42, Peter Crosthwaite a écrit : On Sat, Feb 20, 2016 at 10:03 AM, Jean-Christophe DUBOIS wrote: Le 20/02/2016 16:30, Peter Crosthwaite a écrit : On Sat, Feb 20, 2016 at 2:55 AM, Jean-Christophe DUBOIS wrote: Just to compare I

Re: [Qemu-devel] [PATCH 05/13] acpi: add DMAR scope definition for root IOAPIC

2016-02-21 Thread Jan Kiszka
On 2016-02-21 13:08, Marcel Apfelbaum wrote: > On 02/21/2016 01:38 PM, Marcel Apfelbaum wrote: >> On 02/19/2016 05:30 AM, Peter Xu wrote: >>> To enable interrupt remapping for intel IOMMU device, each IOAPIC device >>> in the system reported via ACPI MADT must be explicitly enumerated under >>>

Re: [Qemu-devel] [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-21 Thread Michael S. Tsirkin
On Sun, Feb 21, 2016 at 08:06:17AM -0500, Gabriel L. Somlo wrote: > > So for all arches which support ACPI, I think this driver > > should just rely on ACPI. > > There was a discussion about that a few versions ago, and IIRC the > conclusion was not to expect the firmware to contend for fw_cfg

Re: [Qemu-devel] [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-21 Thread Michael S. Tsirkin
On Sun, Feb 21, 2016 at 08:06:17AM -0500, Gabriel L. Somlo wrote: > > > > > > +#if !(defined(FW_CFG_CTRL_OFF) && defined(FW_CTRL_DATA_OFF)) > > > +# if (defined(CONFIG_ARM) || defined(CONFIG_ARM64)) > > > +# define FW_CFG_CTRL_OFF 0x08 > > > +# define FW_CFG_DATA_OFF 0x00 > > > +# elif

Re: [Qemu-devel] [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-21 Thread Gabriel L. Somlo
On Sun, Feb 21, 2016 at 10:30:26AM +0200, Michael S. Tsirkin wrote: > On Thu, Jan 28, 2016 at 09:23:11AM -0500, Gabriel L. Somlo wrote: > > From: Gabriel Somlo > > > > Make fw_cfg entries of type "file" available via sysfs. Entries > > are listed under

[Qemu-devel] [PATCH] bios-linker-loader: document+validate input

2016-02-21 Thread Michael S. Tsirkin
While guest/host ABI is documented in hw/acpi/bios-linker-loader.c, the API was left undocumented. This adds documentation for all API functions. Additionally, input is validated to make sure all pointers fall within range of provided files. To allow this validation for checksum commands,

Re: [Qemu-devel] [PATCH RFC V5 0/9] Implement GIC-500 from GICv3 family for arm64

2016-02-21 Thread Shlomo Pongratz
On Tuesday, February 16, 2016, Shlomo Pongratz wrote: > > > On Tuesday, February 16, 2016, Peter Maydell > wrote: > >> On 31 January 2016 at 15:54, Shlomo Pongratz

Re: [Qemu-devel] [PATCH 05/13] acpi: add DMAR scope definition for root IOAPIC

2016-02-21 Thread Marcel Apfelbaum
On 02/21/2016 01:38 PM, Marcel Apfelbaum wrote: On 02/19/2016 05:30 AM, Peter Xu wrote: To enable interrupt remapping for intel IOMMU device, each IOAPIC device in the system reported via ACPI MADT must be explicitly enumerated under one specific remapping hardware unit. This patch adds the

Re: [Qemu-devel] [PATCH 05/13] acpi: add DMAR scope definition for root IOAPIC

2016-02-21 Thread Marcel Apfelbaum
On 02/19/2016 05:30 AM, Peter Xu wrote: To enable interrupt remapping for intel IOMMU device, each IOAPIC device in the system reported via ACPI MADT must be explicitly enumerated under one specific remapping hardware unit. This patch adds the root-complex IOAPIC into the default DMAR device.

Re: [Qemu-devel] [PATCH 02/13] acpi: enable INTR for DMAR report structure

2016-02-21 Thread Marcel Apfelbaum
On 02/19/2016 05:30 AM, Peter Xu wrote: In ACPI DMA remapping report structure, enable INTR flag when specified. Signed-off-by: Peter Xu --- hw/i386/acpi-build.c | 31 --- include/hw/i386/intel_iommu.h | 2 ++ 2 files changed, 26

Re: [Qemu-devel] [PATCH 01/13] q35: add "int-remap" flag to enable intr

2016-02-21 Thread Marcel Apfelbaum
On 02/19/2016 05:30 AM, Peter Xu wrote: One flag is added to specify whether to enable INTR for emulated IOMMU. By default, interrupt remapping is not supportted. To enable it, we should specify something like: $ qemu-system-x86_64 -M q35,iommu=on,int_remap=on Hi Peter, Please be aware that

[Qemu-devel] [PATCH v2] linux-user: add getrandom() syscall

2016-02-21 Thread Laurent Vivier
getrandom() has been introduced in kernel 3.17 and is now used during the boot sequence of Debian unstable (stretch/sid). Signed-off-by: Laurent Vivier --- v2: fix compilation on AArch64 by conditionally define getrandom() on TARGET_NR_getrandom AND __NR_getrandom.

Re: [Qemu-devel] [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-21 Thread Michael S. Tsirkin
On Thu, Jan 28, 2016 at 09:23:11AM -0500, Gabriel L. Somlo wrote: > From: Gabriel Somlo > > Make fw_cfg entries of type "file" available via sysfs. Entries > are listed under /sys/firmware/qemu_fw_cfg/by_key, in folders > named after each entry's selector key. Filename, selector

Re: [Qemu-devel] [V4 0/4] AMD IOMMU

2016-02-21 Thread Jan Kiszka
On 2016-02-17 20:09, David Kiarie wrote: > Hello there, > > This is v5 of AMD IOMMU patches that fixes the issues mentioned in v4 except > I fail to see the endian-ness issues Michael mentioned. > > I also stripped PIIX AMD IOMMU support since I added an MSI interrupt. One of > the patches has

Re: [Qemu-devel] [V4 2/4] hw/core: Add AMD IO MMU to machine properties

2016-02-21 Thread Jan Kiszka
On 2016-02-17 20:09, David Kiarie wrote: > Add IO MMU as a string to machine properties which > is used to control whether and they type of IO MMU > to emulate Let's call it consistently "IOMMU", instead of "IO MMU", also in the outputs. Jan signature.asc Description: OpenPGP digital

Re: [Qemu-devel] [V4 3/4] hw/i386: ACPI table for AMD IO MMU

2016-02-21 Thread Jan Kiszka
On 2016-02-17 20:09, David Kiarie wrote: > Add IVRS table for AMD IO MMU. Also reverve MMIO > region for IO MMU via ACPI > > Signed-off-by: David Kiarie > --- > hw/i386/acpi-build.c| 98 > - >

Re: [Qemu-devel] [V4 1/4] hw/i386: Introduce AMD IO MMU

2016-02-21 Thread Jan Kiszka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2016-02-21 09:16, Jan Kiszka wrote: > On 2016-02-17 20:09, David Kiarie wrote: >> diff --git a/hw/i386/amd_iommu.h b/hw/i386/amd_iommu.h new file >> mode 100644 index 000..4264c19 --- /dev/null +++ >> b/hw/i386/amd_iommu.h > > ... > >> +/*

Re: [Qemu-devel] [V4 1/4] hw/i386: Introduce AMD IO MMU

2016-02-21 Thread Jan Kiszka
On 2016-02-17 20:09, David Kiarie wrote: > diff --git a/hw/i386/amd_iommu.h b/hw/i386/amd_iommu.h > new file mode 100644 > index 000..4264c19 > --- /dev/null > +++ b/hw/i386/amd_iommu.h ... > +/* extended feature support */ > +#define IOMMU_EXT_FEATURES(IOMMU_FEATURE_PREFETCH |

<    1   2