All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nadav Amit <nadav.amit-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
Cc: Paolo Bonzini <pbonzini-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	Nadav Amit <namit-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] iommu/vt-d: Remove unnecassary qi clflushes
Date: Tue, 5 Jul 2016 09:27:27 -0700	[thread overview]
Message-ID: <926A8CFB-D22D-4DC6-9EE0-D912451365BB@gmail.com> (raw)
In-Reply-To: <C78095BC-3BED-48DE-90CE-601DE40AA613-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Nadav Amit <nadav.amit@gmail.com> wrote:

> Joerg Roedel <joro@8bytes.org> wrote:
> 
>> On Fri, Jun 24, 2016 at 06:13:14AM -0700, Nadav Amit wrote:
>>> According to the manual: "Hardware access to ...  invalidation queue ...
>>> are always coherent."
>>> 
>>> Remove unnecassary clflushes accordingly.
>> 
>> It is one thing what the spec says and another how hardware really
>> behaves. Have you tested this on (potentially really old) VT-d machines
>> to make sure the spec is _always_ right here?
> 
> No I didn’t as the commit message says. I would be happy for someones’
> tested-by.
> 
> Having said that - FreeBSD does not do these (unnecessary)
> invalidations [1], and their code comment clearly says it. Since this code
> is not new, I would assume FreeBSD would crash by now if the code was
> buggy.
> 
> Although such hardware is old, there are some hypervisors that do not set
> the ecap.coherency of emulated IOMMUs. Yes, it is unwise, but there is no
> reason to further punish these hypervisors.

Ping? To clarify - this behavior applies to the guest of VMware and KVM
(which uses QEMU for IOMMU emulation).

Regardless, please respond to the other patch I sent as well.

Thanks,
Nadav

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

  parent reply	other threads:[~2016-07-05 16:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-24 13:13 [PATCH] iommu/vt-d: Remove unnecassary qi clflushes Nadav Amit
     [not found] ` <1466773994-242872-1-git-send-email-namit-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2016-06-27 11:30   ` Joerg Roedel
     [not found]     ` <20160627113014.GL11432-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2016-06-27 16:17       ` Nadav Amit
     [not found]         ` <C78095BC-3BED-48DE-90CE-601DE40AA613-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-07-05 16:27           ` Nadav Amit [this message]
     [not found]             ` <926A8CFB-D22D-4DC6-9EE0-D912451365BB-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-07-05 16:40               ` Paolo Bonzini
     [not found]                 ` <ac3ff8d4-e47b-e4d8-40ed-02811732526a-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-07-05 16:50                   ` Nadav Amit
     [not found]                     ` <5F48A3E6-99EE-4DC5-BF38-4F0338E9E8D0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-07-05 16:57                       ` Paolo Bonzini
2016-07-13 10:07   ` Joerg Roedel

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=926A8CFB-D22D-4DC6-9EE0-D912451365BB@gmail.com \
    --to=nadav.amit-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org \
    --cc=namit-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org \
    --cc=pbonzini-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.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.