All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>, Peter Xu <peterx@redhat.com>
Subject: Re: [PATCH 1/2] intel-iommu: remove VTD_FR_RESERVED_ERR
Date: Sun, 20 Mar 2022 08:01:51 -0400	[thread overview]
Message-ID: <20220320080145-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <CACGkMEtv3uZ6-K=E_=74EHLtRN0yBGO6WhL8MzSRvf+YB8+aDg@mail.gmail.com>

Will do, thanks!

On Thu, Mar 17, 2022 at 12:38:35PM +0800, Jason Wang wrote:
> HI Michael:
> 
> Want to take this series?
> 
> Thanks
> 
> On Thu, Feb 10, 2022 at 5:28 PM Jason Wang <jasowang@redhat.com> wrote:
> >
> > This fault reason is not used and is duplicated with SPT.2 condition
> > code. So let's remove it.
> >
> > Signed-off-by: Jason Wang <jasowang@redhat.com>
> > ---
> >  hw/i386/intel_iommu.c          | 6 ------
> >  hw/i386/intel_iommu_internal.h | 5 -----
> >  2 files changed, 11 deletions(-)
> >
> > diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
> > index 5b865ac08c..55281ee1b4 100644
> > --- a/hw/i386/intel_iommu.c
> > +++ b/hw/i386/intel_iommu.c
> > @@ -469,11 +469,6 @@ static void vtd_report_dmar_fault(IntelIOMMUState *s, uint16_t source_id,
> >
> >      assert(fault < VTD_FR_MAX);
> >
> > -    if (fault == VTD_FR_RESERVED_ERR) {
> > -        /* This is not a normal fault reason case. Drop it. */
> > -        return;
> > -    }
> > -
> >      trace_vtd_dmar_fault(source_id, fault, addr, is_write);
> >
> >      if (fsts_reg & VTD_FSTS_PFO) {
> > @@ -1629,7 +1624,6 @@ static const bool vtd_qualified_faults[] = {
> >      [VTD_FR_PAGING_ENTRY_RSVD] = true,
> >      [VTD_FR_CONTEXT_ENTRY_TT] = true,
> >      [VTD_FR_PASID_TABLE_INV] = false,
> > -    [VTD_FR_RESERVED_ERR] = false,
> >      [VTD_FR_MAX] = false,
> >  };
> >
> > diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h
> > index a6c788049b..d0bb43ae87 100644
> > --- a/hw/i386/intel_iommu_internal.h
> > +++ b/hw/i386/intel_iommu_internal.h
> > @@ -303,11 +303,6 @@ typedef enum VTDFaultReason {
> >
> >      VTD_FR_PASID_TABLE_INV = 0x58,  /*Invalid PASID table entry */
> >
> > -    /* This is not a normal fault reason. We use this to indicate some faults
> > -     * that are not referenced by the VT-d specification.
> > -     * Fault event with such reason should not be recorded.
> > -     */
> > -    VTD_FR_RESERVED_ERR,
> >      VTD_FR_MAX,                 /* Guard */
> >  } VTDFaultReason;
> >
> > --
> > 2.25.1
> >



      reply	other threads:[~2022-03-20 12:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-10  9:28 [PATCH 1/2] intel-iommu: remove VTD_FR_RESERVED_ERR Jason Wang
2022-02-10  9:28 ` [PATCH 2/2] intel-iommu: block output address in interrupt address range Jason Wang
2022-02-10  9:47   ` Peter Xu
2022-02-10  9:46 ` [PATCH 1/2] intel-iommu: remove VTD_FR_RESERVED_ERR Peter Xu
2022-03-17  4:38 ` Jason Wang
2022-03-20 12:01   ` Michael S. Tsirkin [this message]

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=20220320080145-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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.