From: Pavel Fedin <p.fedin@samsung.com>
To: 'Alex Williamson' <alex.williamson@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] vfio: Fix handling VFIO_IOMMU_GET_INFO results
Date: Fri, 13 Nov 2015 12:33:09 +0300 [thread overview]
Message-ID: <002401d11df6$4f7282c0$ee578840$@samsung.com> (raw)
In-Reply-To: <1447342408.3946.54.camel@redhat.com>
Hello!
> > If we fix qemu, it will automatically start working with all
> > available kernels which are there in the wild. If we fix kernel, older
> > versions will still not work, however they can.
> > That's why i think that we should adapt qemu to what already exists.
> > But, well, you are The Boss, so you can just say "i don't care". So,
> > just let me now if you strongly disagree with this.
>
> I do care, in fact I care enough about the ABI that I'm suggesting what
> I think is the correct fix rather than taking the quick and dirty
> solution. It's an unfortunate bug, but it's not worth changing the ABI
> and removing the kernel's ability to indicate whether the pgsize bitmap
> field is valid IMO.
Ok, i see your point...
But what about fix, which would work both with future kernels, which do provide this flag, as well as would be compatible with already existing kernels, which set flags == 0?
We could check for ((info.flags == 0) || (info.flags & VFIO_IOMMU_INFO_PGSIZES)). This would conform to both behaviors:
a) All current kernels set flags = 0 and report page sizes.
b) Some future kernels could have set some flags, but not reported page sizes and not set VFIO_IOMMI_PGSIZES
What would you say about this? Yes, this would be a "workaround" instead of "fix".
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
next prev parent reply other threads:[~2015-11-13 9:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-12 7:16 [Qemu-devel] [PATCH] vfio: Fix handling VFIO_IOMMU_GET_INFO results Pavel Fedin
2015-11-12 14:16 ` Alex Williamson
2015-11-12 14:35 ` Pavel Fedin
2015-11-12 15:33 ` Alex Williamson
2015-11-13 9:33 ` Pavel Fedin [this message]
2015-11-13 17:23 ` Alex Williamson
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='002401d11df6$4f7282c0$ee578840$@samsung.com' \
--to=p.fedin@samsung.com \
--cc=alex.williamson@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 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).