From: Daniel De Graaf Subject: Re: [PATCH V3 2/3] xen/vm_event: Support for guest-requested events Date: Tue, 07 Jul 2015 10:26:45 -0400 Message-ID: <559BE1A5.7030201@tycho.nsa.gov> References: <1436197873-4559-1-git-send-email-rcojocaru@bitdefender.com> <1436197873-4559-3-git-send-email-rcojocaru@bitdefender.com> <559BF090020000780008D7C1@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <559BF090020000780008D7C1@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , Razvan Cojocaru Cc: kevin.tian@intel.com, wei.liu2@citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, george.dunlap@eu.citrix.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, eddie.dong@intel.com, Aravind.Gopalakrishnan@amd.com, jun.nakajima@intel.com, tlengyel@novetta.com, keir@xen.org, boris.ostrovsky@oracle.com, suravee.suthikulpanit@amd.com List-Id: xen-devel@lists.xenproject.org On 07/07/2015 09:30 AM, Jan Beulich wrote: >>>> On 06.07.15 at 17:51, wrote: >> @@ -6388,6 +6387,13 @@ long do_hvm_op(unsigned long op, XEN_GUEST_HANDLE_PARAM(void) arg) >> break; >> } >> >> + case HVMOP_guest_request_vm_event: >> + if ( guest_handle_is_null(arg) ) >> + hvm_event_guest_request(); >> + else >> + rc = -EINVAL; >> + break; > > Pending Daniel's confirmation that not having an XSM check here > is okay, > Acked-by: Jan Beulich I don't think an XSM check is needed here, if only because the events are being added to an existing channel from the guest to the monitor. The best way to control this communication is probably when the shared page is mapped by the monitor, but this is an existing mechanism which appears to be covered by the ability to map any page in the target domain. -- Daniel De Graaf National Security Agency