[Qemu-devel] Allocate PCI MMIO without BAR requests.

2015-06-26 Thread David kiarie
Hi all, Some efforts to emulate AMD IOMMU have being going over the past few months. In real hardware AMD IOMMU is implemented as a PCI function. When emulating it in Qemu we want to allocate it MMIO space but real AMD IOMMU manage to reserve memory without making a BAR request, probably through

[Qemu-devel] [RFC 4/4] hw/pci-host: Add AMD IOMMU emulation to q35 and PIIX

2015-08-24 Thread David Kiarie
From: David davidkiar...@gmail.com Add AMD IOMMU emulation to q35 and PIIX chipsets. Signed-off-by: David Kiarie davidkiar...@gmail.com --- hw/pci-host/piix.c | 11 +++ hw/pci-host/q35.c | 11 +++ 2 files changed, 22 insertions(+) diff --git a/hw/pci-host/piix.c b/hw/pci-host

[Qemu-devel] [RFC 3/4] hw/i386: Introduce IVRS for AMD IOMMU

2015-08-24 Thread David Kiarie
From: David davidkiar...@gmail.com Add IVRS table for AMD IOMMU. Table indicates that all devices will be translated by the IOMMU, features common to all IOMMUs and IVDB for the IOMMU to be emulated Signed-off-by: David Kiarie davidkiar...@gmail.com --- hw/i386/acpi-build.c| 85

[Qemu-devel] [RFC 1/4] hw/core: Prepare for introducing AMD IOMMU

2015-08-24 Thread David Kiarie
From: David davidkiar...@gmail.com Add AMD IOMMU as one of the devices that can possibly be emulated by Qemu. Also, add some helper functions for manipulating presence/absence of IOMMU Signed-off-by: David Kiarie davidkiar...@gmail.com --- hw/core/machine.c | 25

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

2015-08-24 Thread David Kiarie
This series implements basic AMD IOMMU emulation to Qemu AMD IOMMU emulation. -This series emulates AMD IOMMU on qemu. It implements the following features -Translation - 4K pages -Event logging - particulary fault logging. -AMD IOMMU, being a convectional PCI device doesn't

[Qemu-devel] [RFC 2/4] hw/i386: Introduce AMD IOMMU

2015-08-24 Thread David Kiarie
From: David davidkiar...@gmail.com Add AMD IOMMU emulation to Qemu. This is a very basic AMD IOMMU emulation that only does translation and some basic Event logging. Guest translation enables nested PCI passthrough Signed-off-by: David Kiarie davidkiar...@gmail.com --- hw/i386/Makefile.objs

[Qemu-devel] [PATCH 2/4] hw/pci-host: Add AMD IOMMU to PIIX and Q35 pcs

2015-10-08 Thread David Kiarie
From: David <davidkiar...@gmail.com> Emulate AMD IOMMU on PIIX and Q35 controlled by a command line switch Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/pci-host/piix.c | 10 ++ hw/pci-host/q35.c | 10 ++ 2 files changed, 20 insertions(+) diff --git a

[Qemu-devel] [PATCH 4/4] hw/acpi: ACPI table for AMD IOMMU

2015-10-08 Thread David Kiarie
From: David <davidkiar...@gmail.com> Add AMD IOMMU IVRS table to ACPI tables Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/acpi-build.c| 85 + include/hw/acpi/acpi-defs.h | 55 + 2 f

[Qemu-devel] [PATCH 1/4] hw/core: Add iommu to machine properties

2015-10-08 Thread David Kiarie
From: David <davidkiar...@gmail.com> Add iommu to machine properties in preparation of introducing AMD IOMMU Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/core/machine.c | 25 + include/hw/boards.h | 2 ++ 2 files changed, 27 insertions(+)

[Qemu-devel] [PATCH 3/4] hw/i386: Introduce AMD IOMMU

2015-10-08 Thread David Kiarie
From: David <davidkiar...@gmail.com> Introduce basic AMD IOMMU emulation in Qemu. IOMMU implements event logging and host translation which should allow nested PCI passthrough.It also implemented a very basic IOTLB implementation Signed-off-by: David Kiarie <davidkiar...@gmail.com>

[Qemu-devel] [PATCH 0/4] AMD IOMMU v1

2015-10-08 Thread David Kiarie
David (4): hw/core: Add iommu to machine properties hw/pci-host: Add AMD IOMMU to PIIX and Q35 pcs hw/i386: Introduce AMD IOMMU hw/acpi: ACPI table for AMD IOMMU hw/core/machine.c | 25 + hw/i386/Makefile.objs |1 + hw/i386/acpi-build.c| 85 +++

Re: [Qemu-devel] [PATCH 1/4] hw/core: Add iommu to machine properties

2015-10-09 Thread David kiarie
On Thu, Oct 8, 2015 at 9:10 PM, Marcel Apfelbaum <marcel.apfelb...@gmail.com> wrote: > On 10/09/2015 05:53 AM, David Kiarie wrote: >> >> From: David <davidkiar...@gmail.com> >> >> Add iommu to machine properties in preparation of introducing >>

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

2015-10-09 Thread David kiarie
On Fri, Oct 9, 2015 at 10:17 AM, Valentine Sinitsyn <valentine.sinit...@gmail.com> wrote: > Hi David, > > Thanks for your efforts. > > > On 09.10.2015 07:53, David Kiarie wrote: >> >> David (4): >>hw/core: Add iommu to machine properties >>

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

2015-10-09 Thread David kiarie
On Fri, Oct 9, 2015 at 3:24 PM, Valentine Sinitsyn <valentine.sinit...@gmail.com> wrote: > On 09.10.2015 17:22, David kiarie wrote: >> >> On Fri, Oct 9, 2015 at 10:17 AM, Valentine Sinitsyn >> <valentine.sinit...@gmail.com> wrote: >>> >

Re: [Qemu-devel] [PATCH 3/4] hw/i386: Introduce AMD IOMMU

2015-10-09 Thread David kiarie
On Thu, Oct 8, 2015 at 9:24 PM, Marcel Apfelbaum <marcel.apfelb...@gmail.com> wrote: > On 10/09/2015 05:53 AM, David Kiarie wrote: >> >> From: David <davidkiar...@gmail.com> >> >> Introduce basic AMD IOMMU emulation in Qemu. IOMMU implements event >>

Re: [Qemu-devel] [RFC 2/4] hw/i386: Introduce AMD IOMMU

2015-08-25 Thread David kiarie
Also, am not sure what HATS, GATS and sizes of virtual addresses(for both guest and host) I should be using. On Tue, Aug 25, 2015 at 10:41 AM, David kiarie davidkiar...@gmail.com wrote: On Tue, Aug 25, 2015 at 10:31 AM, Valentine Sinitsyn valentine.sinit...@gmail.com wrote: On 25.08.2015 12

Re: [Qemu-devel] [RFC 2/4] hw/i386: Introduce AMD IOMMU

2015-08-25 Thread David kiarie
On Tue, Aug 25, 2015 at 9:39 AM, Valentine Sinitsyn valentine.sinit...@gmail.com wrote: Hi, On 25.08.2015 04:19, David Kiarie wrote: From: David davidkiar...@gmail.com Add AMD IOMMU emulation to Qemu. This is a very basic AMD IOMMU emulation that only does translation and some basic Event

Re: [Qemu-devel] [RFC 2/4] hw/i386: Introduce AMD IOMMU

2015-08-25 Thread David kiarie
On Tue, Aug 25, 2015 at 10:31 AM, Valentine Sinitsyn valentine.sinit...@gmail.com wrote: On 25.08.2015 12:25, David kiarie wrote: On Tue, Aug 25, 2015 at 9:39 AM, Valentine Sinitsyn valentine.sinit...@gmail.com wrote: Hi, On 25.08.2015 04:19, David Kiarie wrote: From: David davidkiar

Re: [Qemu-devel] Aspirant for AMD IOMMU emulation project for Outreachy

2015-09-09 Thread David kiarie
On Wed, Sep 9, 2015 at 8:01 AM, Rita Sinha wrote: > Hi David, > > Please find my response inline. > > >> >> Hi all, >> >> Most recent work is here >> http://lists.nongnu.org/archive/html/qemu-devel/2015-08/msg02759.html >> . Most the code is Qemu device boilerplate(so

Re: [Qemu-devel] [RFC 2/4] hw/i386: Introduce AMD IOMMU

2015-09-09 Thread David kiarie
On Wed, Sep 9, 2015 at 11:14 AM, Valentine Sinitsyn <valentine.sinit...@gmail.com> wrote: > Oops, that was a long ago. Sorry & thanks. No problem. Will fix all other comments. > > Valentine > > > On 09.09.2015 13:12, David kiarie wrote: >> >> I wrote som

Re: [Qemu-devel] [RFC 2/4] hw/i386: Introduce AMD IOMMU

2015-09-09 Thread David kiarie
integrated with QEMU. > > On 25.08.2015 04:19, David Kiarie wrote: >> >> From: David <davidkiar...@gmail.com> >> >> Add AMD IOMMU emulation to Qemu. This is a very basic AMD IOMMU >> emulation that only does translation and some basic Event logging. >&

Re: [Qemu-devel] Aspirant for AMD IOMMU emulation project for Outreachy

2015-09-09 Thread David kiarie
On Wed, Sep 9, 2015 at 9:47 AM, Valentine Sinitsyn <valentine.sinit...@gmail.com> wrote: > Hi all, > > > On 09.09.2015 09:23, David kiarie wrote: >> >> On Wed, Sep 9, 2015 at 12:35 AM, Jan Kiszka <jan.kis...@web.de> wrote: >>> >>> [thanks for

Re: [Qemu-devel] [RFC 2/4] hw/i386: Introduce AMD IOMMU

2015-09-09 Thread David kiarie
On Wed, Sep 9, 2015 at 10:45 AM, Valentine Sinitsyn <valentine.sinit...@gmail.com> wrote: > On 09.09.2015 12:30, David kiarie wrote: > ...snip... > > >>>> +static void amd_iommu_cmdbuf_exec(AMDIOMMUState *s) >>>> +{ >>>> +u

Re: [Qemu-devel] [RFC 2/4] hw/i386: Introduce AMD IOMMU

2015-09-09 Thread David kiarie
I wrote something basic on the cover letter http://lists.nongnu.org/archive/html/qemu-devel/2015-08/msg02759.html On Wed, Sep 9, 2015 at 11:07 AM, Valentine Sinitsyn <valentine.sinit...@gmail.com> wrote: > On 09.09.2015 12:59, David kiarie wrote: >> >> On Wed, Sep 9, 2015 a

Re: [Qemu-devel] Aspirant for AMD IOMMU emulation project for Outreachy

2015-09-08 Thread David kiarie
On Wed, Sep 9, 2015 at 12:35 AM, Jan Kiszka wrote: > [thanks for forwarding, Peter] > > Hi Rita, > > On 2015-09-08 10:11, Peter Maydell wrote: >> On 7 September 2015 at 22:31, Rita Sinha wrote: >>> Hi Jan, >>> >>> I am interested in participating in

[Qemu-devel] [RFC] Allow AMD IOMMU to have both SysBusDevice and PCIDevice properties.

2016-06-05 Thread David Kiarie
Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/acpi/aml-build.c |2 +- hw/i386/amd_iommu.c | 1471 +++ hw/i386/amd_iommu.h | 348 ++ hw/i386/kvm/pci-assign.c|2 +- hw/i386/pc_q35.c

[Qemu-devel] [RFC] AMD IOMMU: emulate multiple devices

2016-06-05 Thread David Kiarie
in this patch and review the design. Also, some of the changes here are not related to the above issue. Looking forward to your comments! David Kiarie (1): Allow AMD IOMMU to have both SysBusDevice and PCIDevice properties. hw/acpi/aml-build.c |2 +- hw/i386/amd_iommu.c

[Qemu-devel] [RFC] hw/i386: Composite Bus and PCI device

2016-06-08 Thread David Kiarie
Sample composite SysBus and PCI device similar to AMD IOMMU setup Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/compositedevice.c | 113 ++ 1 file changed, 113 insertions(+) create mode 100644 hw/i386/compositedevice.c diff

[Qemu-devel] [RFC] AMD IOMMU: emulate multiple devices

2016-06-08 Thread David Kiarie
/gmane.comp.emulators.qemu/413018 David Kiarie (1): hw/i386: Composite Bus and PCI device hw/i386/compositedevice.c | 113 ++ 1 file changed, 113 insertions(+) create mode 100644 hw/i386/compositedevice.c -- 2.1.4

Re: [Qemu-devel] [RFC] hw/i386: Composite Bus and PCI device

2016-06-11 Thread David Kiarie
On Fri, Jun 10, 2016 at 8:30 AM, Jan Kiszka <jan.kis...@web.de> wrote: > On 2016-06-08 17:25, Eduardo Habkost wrote: >> On Wed, Jun 08, 2016 at 01:00:32PM +0300, David Kiarie wrote: >>> Sample composite SysBus and PCI device similar to AMD IOMMU setup >>> >>&

Re: [Qemu-devel] [RFC] Allow AMD IOMMU to have both SysBusDevice and PCIDevice properties.

2016-06-11 Thread David Kiarie
On Thu, Jun 9, 2016 at 4:23 PM, Marcel Apfelbaum wrote: > On 06/07/2016 10:12 PM, Eduardo Habkost wrote: >> >> Hi, >> > > [...] > >> [...] >>> >>> diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c >>> index 04aae89..431eaed 100644 >>> --- a/hw/i386/pc_q35.c >>> +++

[Qemu-devel] [V12 2/4] trace-events: Add AMD IOMMU trace events

2016-06-15 Thread David Kiarie
Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- trace-events | 29 + 1 file changed, 29 insertions(+) diff --git a/trace-events b/trace-events index 2f14205..340d019 100644 --- a/trace-events +++ b/trace-events @@ -2164,3 +2164,32 @@ e1000e_cfg_support_

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

2016-06-15 Thread David Kiarie
guest. This can also done without passing any iommu related parameters to the kernel. For convinience: [1] https://github.com/aslaq/qemu/tree/v12 David Kiarie (4): hw/pci: Prepare for AMD IOMMU trace-events: Add AMD IOMMU trace events hw/i386: Introduce AMD IOMMU hw/i386: AMD IOMMU IVRS

[Qemu-devel] [V12 1/4] hw/pci: Prepare for AMD IOMMU

2016-06-15 Thread David Kiarie
Introduce PCI macros from linux headers for use by AMD IOMMU Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- include/hw/pci/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index 4420f47..ac376c5 100644 --- a/include/hw/pci

[Qemu-devel] [V12 3/4] hw/i386: Introduce AMD IOMMU

2016-06-15 Thread David Kiarie
translation as it is the q35 interrupt region. We also advertise features that are not yet implemented to please the Linux IOMMU driver. IOTLB aims at implementing commands on real IOMMUs which is essential for debugging and may not offer any performance benefits Signed-off-by: David Kiarie <davidk

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

2016-06-15 Thread David Kiarie
On Wed, Jun 15, 2016 at 5:26 PM, Eduardo Habkost <ehabk...@redhat.com> wrote: > On Wed, Jun 15, 2016 at 03:21:48PM +0300, David Kiarie wrote: >> Hi all, >> >> This patchset adds basic AMD IOMMU emulation support to Qemu. >> >> Changes since V11 >>

Re: [Qemu-devel] [RFC] Allow AMD IOMMU to have both SysBusDevice and PCIDevice properties.

2016-06-07 Thread David Kiarie
. > > On Sun, Jun 05, 2016 at 07:54:33PM +0300, David Kiarie wrote: >> Signed-off-by: David Kiarie <davidkiar...@gmail.com> >> --- >> hw/acpi/aml-build.c |2 +- >> hw/i386/amd_iommu.c | 1471 >>

Re: [Qemu-devel] [PATCH v7 07/25] intel_iommu: define several structs for IOMMU IR

2016-05-30 Thread David Kiarie
On Mon, May 30, 2016 at 11:14 AM, Peter Xu <pet...@redhat.com> wrote: > On Mon, May 30, 2016 at 07:56:16AM +0200, Jan Kiszka wrote: >> On 2016-05-30 07:45, Peter Xu wrote: >> > On Sun, May 29, 2016 at 11:21:35AM +0300, David Kiarie wrote: >> > [...] >> >&g

Re: [Qemu-devel] [PATCH v7 07/25] intel_iommu: define several structs for IOMMU IR

2016-05-30 Thread David Kiarie
On Mon, May 30, 2016 at 12:16 PM, Peter Xu <pet...@redhat.com> wrote: > On Mon, May 30, 2016 at 11:54:52AM +0300, David Kiarie wrote: >> On Mon, May 30, 2016 at 11:14 AM, Peter Xu <pet...@redhat.com> wrote: >> > On Mon, May 30, 2016 at 07:56:16AM +0200, Jan Kiszka wr

Re: [Qemu-devel] [PATCH v7 07/25] intel_iommu: define several structs for IOMMU IR

2016-05-29 Thread David Kiarie
On Tue, May 17, 2016 at 10:15 AM, Peter Xu wrote: > Several data structs are defined to better support the rest of the > patches: IRTE to parse remapping table entries, and IOAPIC/MSI related > structure bits to parse interrupt entries to be filled in by guest > kernel. > >

Re: [Qemu-devel] [PATCH v7 07/25] intel_iommu: define several structs for IOMMU IR

2016-05-29 Thread David Kiarie
On Sun, May 29, 2016 at 11:20 AM, David Kiarie <davidkiar...@gmail.com> wrote: > On Tue, May 17, 2016 at 10:15 AM, Peter Xu <pet...@redhat.com> wrote: >> Several data structs are defined to better support the rest of the >> patches: IRTE to parse remapping table entr

Re: [Qemu-devel] [V11 2/4] hw/i386: ACPI IVRS table

2016-06-18 Thread David Kiarie
On Tue, May 24, 2016 at 10:06 AM, Valentine Sinitsyn <valentine.sinit...@gmail.com> wrote: > Hi all, > > > On 24.05.2016 11:54, Peter Xu wrote: >> >> On Sun, May 22, 2016 at 01:21:52PM +0300, David Kiarie wrote: >> [...] >>> >>> +static void &

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

2016-01-15 Thread David kiarie
; On Jan 14, 2016 9:29 PM, "Kevin O'Connor" <ke...@koconnor.net> wrote: >> >> On Thu, Jan 14, 2016 at 12:09:46PM +0200, Michael S. Tsirkin wrote: >> > On Thu, Jan 14, 2016 at 11:04:27AM +0300, David Kiarie wrote: >> > > Add IVRS table for AMD I

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

2016-01-14 Thread David Kiarie
Add IVRS table for AMD IO MMU. Also reverve MMIO region for IO MMU via ACPI Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/acpi-build.c| 96 + include/hw/acpi/acpi-defs.h | 55 ++ 2 files change

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

2016-01-14 Thread David Kiarie
Add IO MMU as a string to machine properties which is used to control whether and they type of IO MMU to emulate Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/core/machine.c | 17 + include/hw/boards.h | 3 ++- qemu-options.hx | 6 +++--- util/qemu-co

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

2016-01-14 Thread David Kiarie
David Kiarie (4): hw/core: Add AMD IO MMU to machine properties hw/i386: ACPI table for AMD IO MMU hw/pci-host: Emulate AMD IO MMU hw/core/machine.c | 17 +- hw/i386/Makefile.objs |1 + hw/i386/acpi-build.c| 96 +++ hw/i386/amd_iommu.c | 1420

[Qemu-devel] [V3 4/4] hw/pci-host: Emulate AMD IO MMU

2016-01-14 Thread David Kiarie
Support AMD IO MMU emulation in q35 and piix chipsets Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/pci-host/piix.c | 11 +++ hw/pci-host/q35.c | 16 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/

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

2016-01-14 Thread David Kiarie
From: David <davidkiar...@gmail.com> Add AMD IO MMU emulation to Qemu in addition to Intel IO MMU. The IO MMU does basic translation, error checking and has a minimal IOTLB implementation. Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/Makefile.objs |

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

2016-01-14 Thread David kiarie
On Thu, Jan 14, 2016 at 1:09 PM, Michael S. Tsirkin <m...@redhat.com> wrote: > On Thu, Jan 14, 2016 at 11:04:27AM +0300, David Kiarie wrote: >> Add IVRS table for AMD IO MMU. Also reverve MMIO > > reserve? Yeah, typo. > >> region for IO MMU via ACPI > >

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

2016-01-14 Thread David kiarie
On Thu, Jan 14, 2016 at 1:09 PM, Michael S. Tsirkin <m...@redhat.com> wrote: > On Thu, Jan 14, 2016 at 11:04:27AM +0300, David Kiarie wrote: >> Add IVRS table for AMD IO MMU. Also reverve MMIO > > reserve? > >> region for IO MMU via ACPI > > > It does not

[Qemu-devel] [V4 0/4] AMD IO MMU

2016-01-18 Thread David Kiarie
David Kiarie (4): hw/i386: Introduce AMD IO MMU hw/core: Add AMD IO MMU to machine properties hw/i386: ACPI table for AMD IO MMU hw/pci-host: Emulate AMD IO MMU hw/core/machine.c | 17 +- hw/i386/Makefile.objs |1 + hw/i386/acpi-build.c | 70 ++ hw

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

2016-01-18 Thread David Kiarie
Add IO MMU as a string to machine properties which is used to control whether and the type of IO MMU to emulate Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/core/machine.c | 17 + include/hw/boards.h | 3 ++- include/hw/i386/intel_i

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

2016-01-18 Thread David Kiarie
Add IVRS table for AMD IO MMU. Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/acpi-build.c| 70 + include/hw/acpi/acpi-defs.h | 55 +++ 2 files changed, 125 insertions(+) diff --git a/h

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

2016-01-18 Thread David Kiarie
Add AMD IO MMU emulation to Qemu in addition to Intel IO MMU. The IO MMU does basic translation, error checking and has a minimal IOTLB implementation. Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/Makefile.objs |1 + hw/i386/amd_iommu.c

[Qemu-devel] [V4 4/4] hw/pci-host: Emulate AMD IO MMU

2016-01-18 Thread David Kiarie
Support AMD IO MMU emulation in q35 and piix chipsets Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/pci-host/piix.c | 11 +++ hw/pci-host/q35.c | 14 -- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/

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

2016-01-18 Thread David Kiarie
On 1/18/2016 8:27 PM, Marcel Apfelbaum wrote: On 01/18/2016 06:48 PM, David Kiarie wrote: On 1/18/2016 7:21 PM, Marcel Apfelbaum wrote: On 01/18/2016 05:25 PM, David Kiarie wrote: Add IO MMU as a string to machine properties which is used to control whether and the type of IO MMU

Re: [Qemu-devel] [V3 4/4] hw/pci-host: Emulate AMD IO MMU

2016-01-18 Thread David Kiarie
On 1/17/2016 4:57 PM, Marcel Apfelbaum wrote: On 01/14/2016 10:04 AM, David Kiarie wrote: Support AMD IO MMU emulation in q35 and piix chipsets Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/pci-host/piix.c | 11 +++ hw/pci-host/q35.c | 16 ++-- 2

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

2016-01-18 Thread David Kiarie
On 1/18/2016 7:21 PM, Marcel Apfelbaum wrote: On 01/18/2016 05:25 PM, David Kiarie wrote: Add IO MMU as a string to machine properties which is used to control whether and the type of IO MMU to emulate Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/core/mac

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

2016-01-14 Thread David kiarie
On Thu, Jan 14, 2016 at 6:42 PM, Jan Kiszka <jan.kis...@web.de> wrote: > On 2016-01-14 16:39, Michael S. Tsirkin wrote: >> On Thu, Jan 14, 2016 at 03:15:38PM +0300, David kiarie wrote: >>> On Thu, Jan 14, 2016 at 1:09 PM, Michael S. Tsirkin <m...@redhat.com> wrote: &

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

2016-01-14 Thread David kiarie
On Thu, Jan 14, 2016 at 7:19 PM, Jan Kiszka <jan.kis...@web.de> wrote: > On 2016-01-14 17:09, David kiarie wrote: >> On Thu, Jan 14, 2016 at 6:42 PM, Jan Kiszka <jan.kis...@web.de> wrote: >>> On 2016-01-14 16:39, Michael S. Tsirkin wrote: >>>> On Thu, Jan

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

2016-02-22 Thread David Kiarie
On Mon, Feb 22, 2016 at 10:29 AM, Jan Kiszka <jan.kis...@web.de> wrote: > On 2016-02-22 06:57, David Kiarie wrote: >> On Sun, Feb 21, 2016 at 11:20 PM, Jan Kiszka <jan.kis...@web.de> wrote: >>> On 2016-02-21 19:10, David Kiarie wrote: >>>> Hello there, >

Re: [Qemu-devel] [V6 1/4] hw/i386: Introduce AMD IOMMU

2016-02-25 Thread David Kiarie
On Thu, Feb 25, 2016 at 6:43 PM, Marcel Apfelbaum <mar...@redhat.com> wrote: > On 02/21/2016 08:10 PM, David Kiarie wrote: >> >> Add AMD IOMMU emulaton to Qemu in addition to Intel IOMMU >> The IOMMU does basic translation, error checking and has a >> mini

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

2016-02-14 Thread David kiarie
On Thu, Feb 4, 2016 at 6:03 PM, Michael S. Tsirkin <m...@redhat.com> wrote: > On Mon, Jan 18, 2016 at 06:25:42PM +0300, David Kiarie wrote: >> Add AMD IO MMU emulation to Qemu in addition to Intel IO MMU. >> The IO MMU does basic translation, error checking and h

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

2016-02-14 Thread David kiarie
On Mon, Feb 15, 2016 at 6:41 AM, David kiarie <davidkiar...@gmail.com> wrote: > On Thu, Feb 4, 2016 at 6:03 PM, Michael S. Tsirkin <m...@redhat.com> wrote: >> On Mon, Jan 18, 2016 at 06:25:42PM +0300, David Kiarie wrote: >>> Add AMD IO MMU emulation to Qemu in additi

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

2016-02-17 Thread David Kiarie
Add IO MMU as a string to machine properties which is used to control whether and they type of IO MMU to emulate Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/core/machine.c | 28 include/hw/boards.h | 3 ++- qemu-options.hx | 6 +++---

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

2016-02-17 Thread David Kiarie
I could quickly send a clean patch. Thanks! David Kiarie (4): hw/i386: Introduce AMD IO MMU hw/core: Add AMD IO MMU to machine properties hw/i386: ACPI table for AMD IO MMU hw/pci-host: Emulate AMD IO MMU hw/core/machine.c | 28 +- hw/i386/Makefile.objs |1

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

2016-02-17 Thread David Kiarie
Add AMD IO MMU emulation to Qemu in addition to Intel IO MMU. The IO MMU does basic translation, error checking and has a minimal IOTLB implementation. Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/Makefile.objs |1 + hw/i386/amd_iommu.c

[Qemu-devel] [V4 4/4] hw/pci-host: Emulate AMD IO MMU

2016-02-17 Thread David Kiarie
Add AMD IO MMU emulation support to q35 chipset Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/pci-host/piix.c| 1 + hw/pci-host/q35.c | 14 -- include/hw/i386/intel_iommu.h | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) diff

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

2016-02-17 Thread David Kiarie
Add IVRS table for AMD IO MMU. Also reverve MMIO region for IO MMU via ACPI Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/acpi-build.c| 98 - include/hw/acpi/acpi-defs.h | 55 + 2 files change

[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

[Qemu-devel] [V6 2/4] hw/core: Add AMD IOMMU to machine properties

2016-02-21 Thread David Kiarie
Add IOMMU as a string to machine properties which is used to control whether and the type of IOMMU to emulate Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/core/machine.c | 28 include/hw/boards.h | 3 ++- qemu-options.hx | 6 +++--- uti

[Qemu-devel] [V6 3/4] hw/i386: ACPI table for AMD IOMMU

2016-02-21 Thread David Kiarie
Add IVRS table for AMD IOMMU. Generate IVRS or DMAR depending on emulated IOMMU Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/acpi-build.c| 208 +--- include/hw/acpi/acpi-defs.h | 55 2 files changed, 252 inse

[Qemu-devel] [V6 1/4] hw/i386: Introduce AMD IOMMU

2016-02-21 Thread David Kiarie
Add AMD IOMMU emulaton to Qemu in addition to Intel IOMMU The IOMMU does basic translation, error checking and has a mininal IOTLB implementation Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/Makefile.objs |1 + hw/i386/amd_iommu.c

[Qemu-devel] [V6 4/4] hw/pci-host: Emulate AMD IOMMU

2016-02-21 Thread David Kiarie
Add AMD IOMMU emulation support to q35 chipset Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/pci-host/piix.c| 1 + hw/pci-host/q35.c | 14 -- include/hw/i386/intel_iommu.h | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) diff

Re: [Qemu-devel] [V6 3/4] hw/i386: ACPI table for AMD IOMMU

2016-02-21 Thread David Kiarie
On Sun, Feb 21, 2016 at 9:20 PM, Jan Kiszka <jan.kis...@web.de> wrote: > On 2016-02-21 19:10, David Kiarie wrote: >> Add IVRS table for AMD IOMMU. Generate IVRS or DMAR >> depending on emulated IOMMU >> >> Signed-off-by: David Kiarie <davidkiar...@gmail.

[Qemu-devel] [PATCH 3/4] hw/i386: ACPI table for AMD IOMMU

2016-02-21 Thread David Kiarie
Add IVRS table for AMD IOMMU. Generate IVRS or DMAR depending on emulated IOMMU Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/acpi-build.c| 98 - include/hw/acpi/acpi-defs.h | 55 + 2 files c

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

2016-02-14 Thread David kiarie
On Sun, Feb 14, 2016 at 4:07 PM, Michael S. Tsirkin <m...@redhat.com> wrote: > On Sun, Feb 14, 2016 at 02:54:36PM +0200, Marcel Apfelbaum wrote: >> On 01/18/2016 05:25 PM, David Kiarie wrote: >> >Add IVRS table for AMD IO MMU. >> > >> >Signed-of

Re: [Qemu-devel] [V4 4/4] hw/pci-host: Emulate AMD IO MMU

2016-02-14 Thread David kiarie
On Sun, Feb 14, 2016 at 4:02 PM, Marcel Apfelbaum <marcel.apfelb...@gmail.com> wrote: > On 01/18/2016 05:25 PM, David Kiarie wrote: >> >> Support AMD IO MMU emulation in q35 and piix chipsets >> >> Signed-off-by: David Kiarie <davidkiar...@gmail.com&

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

2016-02-14 Thread David kiarie
On Thu, Feb 4, 2016 at 6:03 PM, Michael S. Tsirkin <m...@redhat.com> wrote: > On Mon, Jan 18, 2016 at 06:25:42PM +0300, David Kiarie wrote: >> Add AMD IO MMU emulation to Qemu in addition to Intel IO MMU. >> The IO MMU does basic translation, error checking and h

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

2016-02-21 Thread David Kiarie
On Sun, Feb 21, 2016 at 11:20 PM, Jan Kiszka <jan.kis...@web.de> wrote: > On 2016-02-21 19:10, David Kiarie wrote: >> Hello there, >> >> Repost, AMD IOMMU patches version 6. >> >> Changes since version 5 >> -Fixed macro formating issues >> -ch

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

2016-03-13 Thread David Kiarie
much time. They were listed there mainly for purposes of listing the project. I'd like to know if anyone is willing to mentor this project mainly the people involved in the review process or anyone else! David Kiarie (4): hw/i386: Introduce AMD IOMMU hw/i386: ACPI table for AMD IOMMU hw/core

[Qemu-devel] [V7 3/4] hw/core: Add AMD IOMMU to machine properties

2016-03-13 Thread David Kiarie
Add IOMMU as a string to machine properties which is used to control whether and the type of IOMMU to emulate Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/core/machine.c | 27 --- include/hw/boards.h | 1 + qemu-options.hx | 7 +-- uti

[Qemu-devel] [V7 4/4] hw/pci-host: Emulate AMD IOMMU

2016-03-13 Thread David Kiarie
Add AMD IOMMU emulation support to q35 chipset Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/pci-host/q35.c | 21 +++-- include/hw/i386/intel_iommu.h | 1 + 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/q35.c b/hw/pc

[Qemu-devel] [V7 2/4] hw/i386: ACPI table for AMD IOMMU

2016-03-13 Thread David Kiarie
Add IVRS table for AMD IOMMU. Generate IVRS or DMAR depending on emulated IOMMU Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/acpi-build.c | 98 ++- include/hw/acpi/acpi-defs.h | 55 include/h

[Qemu-devel] [V7 1/4] hw/i386: Introduce AMD IOMMU

2016-03-13 Thread David Kiarie
Add AMD IOMMU emulaton to Qemu in addition to Intel IOMMU The IOMMU does basic translation, error checking and has a mininal IOTLB implementation Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/Makefile.objs |1 + hw/i386/amd_iommu.c

Re: [Qemu-devel] [V7 3/4] hw/core: Add AMD IOMMU to machine properties

2016-03-14 Thread David Kiarie
On Mon, Mar 14, 2016 at 11:40 AM, Marcel Apfelbaum <mar...@redhat.com> wrote: > On 03/14/2016 02:24 AM, David Kiarie wrote: >> >> Add IOMMU as a string to machine properties which is >> used to control whether and the type of IOMMU to emulate >> >>

Re: [Qemu-devel] [V6 4/4] hw/pci-host: Emulate AMD IOMMU

2016-03-12 Thread David Kiarie
On Fri, Mar 11, 2016 at 4:22 PM, Michael S. Tsirkin <m...@redhat.com> wrote: > On Sun, Feb 21, 2016 at 09:11:00PM +0300, David Kiarie wrote: >> Add AMD IOMMU emulation support to q35 chipset >> >> Signed-off-by: David Kiarie <davidkiar...@gmail.com> >> ---

Re: [Qemu-devel] [V6 4/4] hw/pci-host: Emulate AMD IOMMU

2016-03-08 Thread David Kiarie
On Thu, Mar 3, 2016 at 12:49 PM, Michael S. Tsirkin <m...@redhat.com> wrote: > On Thu, Mar 03, 2016 at 01:04:31AM +0300, David Kiarie wrote: >> On Thu, Mar 3, 2016 at 12:17 AM, Michael S. Tsirkin <m...@redhat.com> wrote: >> > On Thu, Mar 03, 2016 at 12:09:

Re: [Qemu-devel] [V6 1/4] hw/i386: Introduce AMD IOMMU

2016-03-02 Thread David Kiarie
On 25/02/16 18:43, Marcel Apfelbaum wrote: On 02/21/2016 08:10 PM, David Kiarie wrote: Add AMD IOMMU emulaton to Qemu in addition to Intel IOMMU The IOMMU does basic translation, error checking and has a mininal IOTLB implementation Hi, Signed-off-by: David Kiarie <davidkiar...@gmail.

Re: [Qemu-devel] [V6 1/4] hw/i386: Introduce AMD IOMMU

2016-03-01 Thread David Kiarie
On Wed, Mar 2, 2016 at 7:00 AM, David Kiarie <davidkiar...@gmail.com> wrote: > On Fri, Feb 26, 2016 at 9:23 AM, David Kiarie <davidkiar...@gmail.com> wrote: >> On Thu, Feb 25, 2016 at 6:43 PM, Marcel Apfelbaum <mar...@redhat.com> wrote: >>> On 02/21/2016 08:10 P

Re: [Qemu-devel] [V6 1/4] hw/i386: Introduce AMD IOMMU

2016-03-01 Thread David Kiarie
On Fri, Feb 26, 2016 at 9:23 AM, David Kiarie <davidkiar...@gmail.com> wrote: > On Thu, Feb 25, 2016 at 6:43 PM, Marcel Apfelbaum <mar...@redhat.com> wrote: >> On 02/21/2016 08:10 PM, David Kiarie wrote: >>> >>> Add AMD IOMMU emulaton to Qemu in addition

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

2016-03-02 Thread David Kiarie
On 01/03/16 16:48, Jan Kiszka wrote: On 2016-03-01 14:07, Michael S. Tsirkin wrote: On Sun, Feb 21, 2016 at 09:10:56PM +0300, David Kiarie wrote: Hello there, Repost, AMD IOMMU patches version 6. Changes since version 5 -Fixed macro formating issues -changed occurences of IO MMU

Re: [Qemu-devel] [V6 2/4] hw/core: Add AMD IOMMU to machine properties

2016-03-02 Thread David Kiarie
On 21/02/16 23:09, Jan Kiszka wrote: On 2016-02-21 19:10, David Kiarie wrote: diff --git a/qemu-options.hx b/qemu-options.hx index 2f0465e..dad160f 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -38,7 +38,7 @@ DEF("machine", HAS_ARG, QEMU_OPTI

Re: [Qemu-devel] [V6 4/4] hw/pci-host: Emulate AMD IOMMU

2016-03-02 Thread David Kiarie
On Thu, Mar 3, 2016 at 12:17 AM, Michael S. Tsirkin <m...@redhat.com> wrote: > On Thu, Mar 03, 2016 at 12:09:28AM +0300, David Kiarie wrote: >> >> >> On 22/02/16 14:22, Marcel Apfelbaum wrote: >> >On 02/21/2016 08:11 PM, David Kiarie wrote: >> >&g

Re: [Qemu-devel] [V6 4/4] hw/pci-host: Emulate AMD IOMMU

2016-03-03 Thread David Kiarie
On Thu, Mar 3, 2016 at 12:49 PM, Michael S. Tsirkin <m...@redhat.com> wrote: > On Thu, Mar 03, 2016 at 01:04:31AM +0300, David Kiarie wrote: >> On Thu, Mar 3, 2016 at 12:17 AM, Michael S. Tsirkin <m...@redhat.com> wrote: >> > On Thu, Mar 03, 2016 at 12:09:

Re: [Qemu-devel] [V6 4/4] hw/pci-host: Emulate AMD IOMMU

2016-03-03 Thread David Kiarie
On Thu, Mar 3, 2016 at 3:06 PM, Marcel Apfelbaum <mar...@redhat.com> wrote: > On 03/03/2016 02:02 PM, Marcel Apfelbaum wrote: >> >> On 03/03/2016 01:47 PM, David Kiarie wrote: >>> >>> On Thu, Mar 3, 2016 at 12:49 PM, Michael S. Tsirkin <m...@redhat.com&

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

2016-04-01 Thread David Kiarie
Hello all, Long time no see, at usual ;) AMD IOMMU patches fixing a few issues mentioned in previous version, formatting errors and commit messages David Kiarie (4): hw/i386: Introduce AMD IOMMU hw/i386: ACPI table for AMD IOMMU hw/core: Add AMD IOMMU to machine properties hw/pci-host

[Qemu-devel] [V8 4/4] hw/pci-host: Emulate AMD IOMMU

2016-04-01 Thread David Kiarie
Add AMD IOMMU emulation support to q35 chipset Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/pci-host/q35.c | 21 +++-- include/hw/i386/intel_iommu.h | 1 + 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/q35.c b/hw/pc

[Qemu-devel] [V8 2/4] hw/i386: ACPI table for AMD IOMMU

2016-04-01 Thread David Kiarie
Add IVRS table for AMD IOMMU. Generate IVRS or DMAR depending on emulated IOMMU Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/acpi-build.c | 98 ++- include/hw/acpi/acpi-defs.h | 55 include/h

[Qemu-devel] [V8 1/4] hw/i386: Introduce AMD IOMMU

2016-04-01 Thread David Kiarie
Add AMD IOMMU emulaton to Qemu in addition to Intel IOMMU The IOMMU does basic translation, error checking and has a minimal IOTLB implementation Signed-off-by: David Kiarie <davidkiar...@gmail.com> --- hw/i386/Makefile.objs |1 + hw/i386/amd_iommu.c

  1   2   3   4   >