qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: prasad.singamsetty@oracle.com
To: qemu-devel@nongnu.org, pbonzini@redhat.com, rth@twiddle.net,
	ehabkost@redhat.com, mst@redhat.com, imammedo@redhat.com
Cc: peterx@redhat.com, konrad.wilk@oracle.com
Subject: [Qemu-devel] [PATCH v1 0/2] intel-iommu: Extend address width to 48 bits
Date: Tue, 14 Nov 2017 18:13:48 -0500	[thread overview]
Message-ID: <20171114231350.286025-1-prasad.singamsetty@oracle.com> (raw)

From: Prasad Singamsetty <prasad.singamsetty@oracle.com>

This pair of patches extends the intel-iommu to support address
width to 48 bits. This is required to support qemu guest with large
memory (>=1TB). 

Patch1 implements changes to redefine macros and usage to
allow further changes to add support for 48 bit address width.
This patch doesn't change the existing functionality or behavior.

Patch2 adds support for 48 bit address width but keeping the
default to 39 bits.

NOTE: Peter Xu had originaly started on this enhancement
but it was not completed or integrated.

Unit testing done:

patch-1:
   * Boot vm with and without intel-iommu enabled
   * Boot vm with #cpus below and above 255 cpus
patch-2:
   * boot vm without "x-aw-bits" or "x-aw-bits=39": guest boots with 39
   * boot vm with "x-aw-bits=48": guest boots with 48 bits
   * boot vm with invalid value for x-aw-bits: guest fails to boot
   * boot vm with >=1TB memory and "x-aw-bits=48": guest boots

Prasad Singamsetty (2):
  intel-iommu: Redefine macros to enable supporting 48 bit address width
  intel-iommu: Extend address width to 48 bits

 hw/i386/acpi-build.c           |   3 +-
 hw/i386/intel_iommu.c          | 123 +++++++++++++++++++++++++----------------
 hw/i386/intel_iommu_internal.h |  43 +++++++++-----
 include/hw/i386/intel_iommu.h  |   7 ++-
 4 files changed, 110 insertions(+), 66 deletions(-)

-- 
2.14.0-rc1

             reply	other threads:[~2017-11-14 23:14 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-14 23:13 prasad.singamsetty [this message]
2017-11-14 23:13 ` [Qemu-devel] [PATCH v1 1/2] intel-iommu: Redefine macros to enable supporting 48 bit address width prasad.singamsetty
2017-12-01 11:23   ` Liu, Yi L
2017-12-01 18:15     ` Prasad Singamsetty
2017-11-14 23:13 ` [Qemu-devel] [PATCH v1 2/2] intel-iommu: Extend address width to 48 bits prasad.singamsetty
2017-11-28 17:32   ` Michael S. Tsirkin
2017-11-29 21:05     ` Prasad Singamsetty
2017-11-30  3:25       ` Peter Xu
2017-11-30 18:33         ` Prasad Singamsetty
2017-11-30 18:56           ` Michael S. Tsirkin
2017-11-30 19:12             ` Prasad Singamsetty
2017-12-01  4:43               ` Peter Xu
2017-12-01 17:02                 ` Prasad Singamsetty
2017-12-01 17:03                   ` Michael S. Tsirkin
2017-12-04  4:07                   ` Peter Xu
2017-11-30  5:22   ` Liu, Yi L
2017-11-30  9:11     ` Peter Xu
2017-11-30  9:54       ` Liu, Yi L
2017-11-30 11:58         ` Peter Xu
2017-12-01 11:29   ` Liu, Yi L
2018-01-11  0:05     ` Prasad Singamsetty
2018-01-11  2:46       ` Liu, Yi L
2018-01-11 16:19         ` Prasad Singamsetty
2017-11-15  7:40 ` [Qemu-devel] [PATCH v1 0/2] " Peter Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171114231350.286025-1-prasad.singamsetty@oracle.com \
    --to=prasad.singamsetty@oracle.com \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=konrad.wilk@oracle.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).