[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86/hvm: Bind xen-created event channels to building domain
# HG changeset patch # User Daniel De Graaf <dgdegra@xxxxxxxxxxxxx> # Date 1357637858 -3600 # Node ID 5e105c5c036dedc21aa62e2c847371839c253cf1 # Parent e1facbde56ff4e5e85f9a4935abc99eb24367cd0 x86/hvm: Bind xen-created event channels to building domain Instead of using a hardcoded domain 0 as the endpoint for the event channels created in hvm_vcpu_initialise, use the domain ID of the building domain so that a domain builder in a domain other than dom0 has the expected access to the event channels. Signed-off-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx> Committed-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r e1facbde56ff -r 5e105c5c036d xen/arch/x86/hvm/hvm.c --- a/xen/arch/x86/hvm/hvm.c Mon Jan 07 14:20:26 2013 +0100 +++ b/xen/arch/x86/hvm/hvm.c Tue Jan 08 10:37:38 2013 +0100 @@ -1071,7 +1071,7 @@ int hvm_vcpu_initialise(struct vcpu *v) goto fail3; /* Create ioreq event channel. */ - rc = alloc_unbound_xen_event_channel(v, 0, NULL); + rc = alloc_unbound_xen_event_channel(v, current->domain->domain_id, NULL); if ( rc < 0 ) goto fail4; @@ -1081,7 +1081,7 @@ int hvm_vcpu_initialise(struct vcpu *v) if ( v->vcpu_id == 0 ) { /* Create bufioreq event channel. */ - rc = alloc_unbound_xen_event_channel(v, 0, NULL); + rc = alloc_unbound_xen_event_channel(v, current->domain->domain_id, NULL); if ( rc < 0 ) goto fail2; v->domain->arch.hvm_domain.params[HVM_PARAM_BUFIOREQ_EVTCHN] = rc; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |