All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Julien Grall <julien.grall@linaro.org>,
	Keir Fraser <keir@xen.org>,
	ian.campbell@citrix.com, Shane Wang <shane.wang@intel.com>,
	Joseph Cihula <joseph.cihula@intel.com>,
	tim@xen.org, stefano.stabellini@citrix.com,
	Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
	xen-devel@lists.xenproject.org, Gang Wei <gang.wei@intel.com>,
	Xiantao Zhang <xiantao.zhang@intel.com>
Subject: Re: [PATCH v2 09/15] xen/passthrough: iommu: Introduce arch specific code
Date: Mon, 24 Feb 2014 11:10:29 +0000	[thread overview]
Message-ID: <530B28A5.8010903@citrix.com> (raw)
In-Reply-To: <530B3083020000780011EAB1@nat28.tlf.novell.com>

On 24/02/14 10:44, Jan Beulich wrote:
>>>> On 23.02.14 at 23:16, Julien Grall <julien.grall@linaro.org> wrote:
>> --- a/xen/include/xen/hvm/iommu.h
>> +++ b/xen/include/xen/hvm/iommu.h
>> @@ -23,32 +23,8 @@
>>  #include <xen/iommu.h>
>>  #include <asm/hvm/iommu.h>
>>  
>> -struct g2m_ioport {
>> -    struct list_head list;
>> -    unsigned int gport;
>> -    unsigned int mport;
>> -    unsigned int np;
>> -};
>> -
>> -struct mapped_rmrr {
>> -    struct list_head list;
>> -    u64 base;
>> -    u64 end;
>> -};
>> -
>>  struct hvm_iommu {
>> -    u64 pgd_maddr;                 /* io page directory machine address */
>> -    spinlock_t mapping_lock;       /* io page table lock */
>> -    int agaw;     /* adjusted guest address width, 0 is level 2 30-bit */
>> -    struct list_head g2m_ioport_list;  /* guest to machine ioport mapping */
>> -    u64 iommu_bitmap;              /* bitmap of iommu(s) that the domain uses */
>> -    struct list_head mapped_rmrrs;
>> -
>> -    /* amd iommu support */
>> -    int domain_id;
> At the very least this field doesn't look all that architecture specific,
> even if it might only be used on x86/AMD right now.

Furthermore, it can be found using container_of()

The current size of struct domain is 3584 bytes, which is quite close to
the 1 page limit.  We should certainly be taking opportunities like this
to reduce bloat.

~Andrew

>
>> -    int paging_mode;
> The same might go for this one.
>
> Jan
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2014-02-24 11:13 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-23 22:16 [PATCH v2 00/15] IOMMU support for ARM Julien Grall
2014-02-23 22:16 ` [PATCH v2 01/15] xen/common: grant-table: only call IOMMU if paging mode translate is disabled Julien Grall
2014-02-23 22:16 ` [PATCH v2 02/15] xen/passthrough: vtd: Don't export iommu_domain_teardown Julien Grall
2014-02-24 11:34   ` Jan Beulich
2014-02-24 12:10     ` Julien Grall
2014-02-24 12:18       ` Jan Beulich
2014-02-24 12:21         ` Julien Grall
2014-02-23 22:16 ` [PATCH v2 03/15] xen/passthrough: vtd: Don't export iommu_set_pgd Julien Grall
2014-02-23 22:16 ` [PATCH v2 04/15] xen/dts: Add dt_property_read_bool Julien Grall
2014-02-23 22:16 ` [PATCH v2 05/15] xen/dts: Add dt_parse_phandle_with_args and dt_parse_phandle Julien Grall
2014-02-23 22:16 ` [PATCH v2 06/15] xen/passthrough: rework dom0_pvh_reqs to use it also on ARM Julien Grall
2014-02-23 22:16 ` [PATCH v2 07/15] xen/passthrough: iommu: Don't need to map dom0 page when the PT is shared Julien Grall
2014-02-23 22:16 ` [PATCH v2 08/15] xen/passthrough: iommu: Split generic IOMMU code Julien Grall
2014-02-24 10:39   ` Jan Beulich
2014-02-24 12:46     ` Julien Grall
2014-02-24 13:13       ` Jan Beulich
2014-02-23 22:16 ` [PATCH v2 09/15] xen/passthrough: iommu: Introduce arch specific code Julien Grall
2014-02-24 10:44   ` Jan Beulich
2014-02-24 11:10     ` Andrew Cooper [this message]
2014-02-24 13:05       ` Julien Grall
2014-02-24 12:57     ` Julien Grall
2014-02-24 13:16       ` Jan Beulich
2014-02-24 13:33         ` Julien Grall
2014-02-23 22:16 ` [PATCH v2 10/15] xen/passthrough: iommu: Basic support of device tree assignment Julien Grall
2014-02-24 10:47   ` Jan Beulich
2014-02-24 13:07     ` Julien Grall
2014-02-23 22:16 ` [PATCH v2 11/15] xen/passthrough: Introduce IOMMU ARM architecture Julien Grall
2014-02-23 22:16 ` [PATCH v2 12/15] MAINTAINERS: Add drivers/passthrough/arm Julien Grall
2014-02-23 22:16 ` [PATCH v2 13/15] xen/arm: Don't give IOMMU devices to dom0 when iommu is disabled Julien Grall
2014-02-23 22:16 ` [PATCH v2 14/15] xen/arm: Add the property "protected-devices" in the hypervisor node Julien Grall
2014-02-24 11:54   ` Stefano Stabellini
2014-02-24 12:05     ` Julien Grall
2014-02-23 22:16 ` [PATCH v2 15/15] drivers/passthrough: arm: Add support for SMMU drivers Julien Grall

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=530B28A5.8010903@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=gang.wei@intel.com \
    --cc=ian.campbell@citrix.com \
    --cc=joseph.cihula@intel.com \
    --cc=julien.grall@linaro.org \
    --cc=keir@xen.org \
    --cc=shane.wang@intel.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    --cc=xiantao.zhang@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.