[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 4/6] x86/vtd: Drop struct ir_ctrl


  • To: Jan Beulich <JBeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Paul Durrant <paul.durrant@xxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Thu, 28 Feb 2019 06:07:47 +0000
  • Accept-language: en-US
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxx>
  • Delivery-date: Thu, 28 Feb 2019 06:08:00 +0000
  • Dlp-product: dlpe-windows
  • Dlp-reaction: no-action
  • Dlp-version: 11.0.400.15
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHUyuK/aulSUGJrTEK7vWD4vlVKw6XvyIaAgAAOPwCABOs9AA==
  • Thread-topic: [PATCH 4/6] x86/vtd: Drop struct ir_ctrl

> From: Jan Beulich [mailto:JBeulich@xxxxxxxx]
> Sent: Monday, February 25, 2019 7:01 PM
> 
> >>> On 25.02.19 at 11:09, <Paul.Durrant@xxxxxxxxxx> wrote:
> >>  -----Original Message-----
> > [snip]
> >>  struct iommu_flush {
> >>      int __must_check (*context)(void *iommu, u16 did, u16 source_id,
> >>                                  u8 function_mask, u64 type,
> >> @@ -523,7 +517,6 @@ struct iommu_flush {
> >>  };
> >>
> >>  struct intel_iommu {
> >> -    struct ir_ctrl ir_ctrl;
> >>      struct iommu_flush flush;
> >>      struct acpi_drhd_unit *drhd;
> >>  };
> >> @@ -543,16 +536,15 @@ struct vtd_iommu {
> >>
> >>      uint64_t qinval_maddr;   /* queue invalidation page machine address
> */
> >>
> >> +    uint64_t iremap_maddr;   /* interrupt remap table machine address */
> >> +    unsigned int iremap_num; /* total num of used interrupt remap entry
> */
> >> +    spinlock_t iremap_lock;  /* lock for irq remapping table */
> >> +
> >
> > Elsewhere in the Xen codebase we try to group related fields, so how ahout
> > the following?
> >
> > struct {
> >     uint64_t maddr;   /* interrupt remap table machine address */
> >     unsigned int num; /* total num of used interrupt remap entry */
> >     spinlock_t lock;  /* lock for irq remapping table */
> > } iremap;
> >
> > You'd than have a fairly mechanical job of replacing '_' with '.' in a few
> > places in your patch but I think it would look better overall.
> 
> +1
> 

agree.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.