From: Peter Xu <peterx@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, imammedo@redhat.com, rth@twiddle.net,
ehabkost@redhat.com, mst@redhat.com, jan.kiszka@web.de,
rkrcmar@redhat.com, davidkiarie4@gmail.com
Subject: Re: [Qemu-devel] [PATCH] intel_iommu: add "eim" property
Date: Fri, 12 Aug 2016 17:22:58 +0800 [thread overview]
Message-ID: <20160812092258.GX4793@pxdev.xzpeter.org> (raw)
In-Reply-To: <3cd53f4a-217a-74f8-9852-84f1045859fd@redhat.com>
On Fri, Aug 12, 2016 at 10:34:44AM +0200, Paolo Bonzini wrote:
>
>
> On 11/08/2016 15:29, Peter Xu wrote:
> > +
> > +static void vtd_eim_prop_set(Object *o, bool value, Error **errp)
> > +{
> > + IntelIOMMUState *s = INTEL_IOMMU_DEVICE(o);
> > + s->eim_supported = value;
> > +}
> > +
> > +static void vtd_instance_init(Object *o)
> > +{
> > + IntelIOMMUState *s = INTEL_IOMMU_DEVICE(o);
> > +
> > + /*
> > + * TODO: we can enable this by default after we have full x2apic
> > + * support.
> > + */
> > + s->eim_supported = false;
> > + object_property_add_bool(o, "eim", vtd_eim_prop_get,
> > + vtd_eim_prop_set, NULL);
> > +}
> > +
> > static const TypeInfo vtd_info = {
> > .name = TYPE_INTEL_IOMMU_DEVICE,
> > .parent = TYPE_X86_IOMMU_DEVICE,
> > + .instance_init = vtd_instance_init,
>
> This can use DEFINE_PROP_BOOL.
Right. Will post v2. Thanks!
-- peterx
prev parent reply other threads:[~2016-08-12 15:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 13:29 [Qemu-devel] [PATCH] intel_iommu: add "eim" property Peter Xu
2016-08-11 15:44 ` Radim Krčmář
2016-08-12 9:29 ` Peter Xu
2016-08-12 8:34 ` Paolo Bonzini
2016-08-12 9:22 ` Peter Xu [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=20160812092258.GX4793@pxdev.xzpeter.org \
--to=peterx@redhat.com \
--cc=davidkiarie4@gmail.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=jan.kiszka@web.de \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rkrcmar@redhat.com \
--cc=rth@twiddle.net \
/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.