aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/hvm.c
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2013-01-08 10:37:38 +0100
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2013-01-08 10:37:38 +0100
commit3c303591a61b0e0a8a9d5c067a112118850b54f8 (patch)
treee92ed0f49f35545df19e28a89fee6c8efcf3f4a0 /xen/arch/x86/hvm/hvm.c
parent8bb51a72e2782395bdca456c54e3b0c64f74714c (diff)
downloadxen-3c303591a61b0e0a8a9d5c067a112118850b54f8.tar.gz
xen-3c303591a61b0e0a8a9d5c067a112118850b54f8.tar.bz2
xen-3c303591a61b0e0a8a9d5c067a112118850b54f8.zip
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@tycho.nsa.gov> Committed-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/arch/x86/hvm/hvm.c')
-rw-r--r--xen/arch/x86/hvm/hvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index 40c1ab219f..682d934c7e 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -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;