From: Tamas K Lengyel <tamas@tklengyel.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: "tim@xen.org" <tim@xen.org>,
"sstabellini@kernel.org" <sstabellini@kernel.org>,
"wei.liu2@citrix.com" <wei.liu2@citrix.com>,
"rcojocaru@bitdefender.com" <rcojocaru@bitdefender.com>,
"George.Dunlap@eu.citrix.com" <George.Dunlap@eu.citrix.com>,
"andrew.cooper3@citrix.com" <andrew.cooper3@citrix.com>,
"ian.jackson@eu.citrix.com" <ian.jackson@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Alexandru Stefan ISAILA <aisaila@bitdefender.com>
Subject: Re: [PATCH v6] x86/hvm: Allow guest_request vm_events coming from userspace
Date: Fri, 25 Aug 2017 09:30:11 -0600 [thread overview]
Message-ID: <CABfawhnwUA--0Mk8i5SuP90iF2-0zTEu2ibmQRwGP8ucXD2rtA@mail.gmail.com> (raw)
In-Reply-To: <59A045E40200007800173CFB@prv-mh.provo.novell.com>
On Fri, Aug 25, 2017 at 7:44 AM, Jan Beulich <JBeulich@suse.com> wrote:
>>>> On 25.08.17 at 15:00, <aisaila@bitdefender.com> wrote:
>> On Vi, 2017-08-25 at 06:13 -0600, Jan Beulich wrote:
>>> >
>>> > >
>>> > > >
>>> > > > On 17.08.17 at 13:50, <aisaila@bitdefender.com> wrote:
>>> > --- a/xen/common/monitor.c
>>> > +++ b/xen/common/monitor.c
>>> > @@ -75,6 +75,7 @@ int monitor_domctl(struct domain *d, struct
>>> > xen_domctl_monitor_op *mop)
>>> > domain_pause(d);
>>> > d->monitor.guest_request_sync = mop->u.guest_request.sync;
>>> > d->monitor.guest_request_enabled = requested_status;
>>> > + d->arch.monitor.guest_request_userspace_enabled = mop-
>>> > >u.guest_request.allow_userspace;
>>> This breaks the build on ARM.
>> There are 2 solutions, I can move the case in x86/monitor.c in
>> the arch_monitor_domctl_event function or I can make a arch specific
>> function that does the assignment in the x86 case and does nothing in
>> the arm case. What approach do you prefer?
>
> That's a question to the maintainers of that code. What I care
> about is that patches touching common code please are at least
> build-checked on the other architecture before submission.
>
Ough, yes, please build-check your code on both architectures before
sending them. As for which route to take I prefer in this case doing
the arch specific function that does the assignment when needed and is
empty when not. The function itself could probably be declared as
static inline too.
Tamas
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-08-25 15:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 11:50 [PATCH v6] x86/hvm: Allow guest_request vm_events coming from userspace Alexandru Isaila
2017-08-18 18:12 ` Tamas K Lengyel
2017-08-22 14:18 ` Wei Liu
2017-08-25 12:13 ` Jan Beulich
2017-08-25 13:00 ` Alexandru Stefan ISAILA
2017-08-25 13:44 ` Jan Beulich
2017-08-25 15:30 ` Tamas K Lengyel [this message]
2017-08-25 15:49 ` George Dunlap
2017-08-25 15:58 ` Jan Beulich
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=CABfawhnwUA--0Mk8i5SuP90iF2-0zTEu2ibmQRwGP8ucXD2rtA@mail.gmail.com \
--to=tamas@tklengyel.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=aisaila@bitdefender.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=rcojocaru@bitdefender.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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.