aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_domain_save.c
diff options
context:
space:
mode:
authorStefano Stabellini <sstabellini@xensource.com>2010-08-05 11:36:24 +0100
committerStefano Stabellini <sstabellini@xensource.com>2010-08-05 11:36:24 +0100
commitc4ebe465294764065c85fa15d7209ab807d27e84 (patch)
treec8dd6f93b5da195064b0c606682582129ba252e2 /tools/libxc/xc_domain_save.c
parent058f27228c5745b2a51837c6e952216054453a8b (diff)
downloadxen-c4ebe465294764065c85fa15d7209ab807d27e84.tar.gz
xen-c4ebe465294764065c85fa15d7209ab807d27e84.tar.bz2
xen-c4ebe465294764065c85fa15d7209ab807d27e84.zip
PV console for HVM domains
Creates a shared memory ring buffer and event channel in HVM domains for passing debug messages from PV drivers on HVM guests The console is used by windows pv drivers to send debug data to xenconsoled Signed-off-by: Owen Smith <owen.smith@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_domain_save.c')
-rw-r--r--tools/libxc/xc_domain_save.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/libxc/xc_domain_save.c b/tools/libxc/xc_domain_save.c
index cc6bd1318e..2ea2272406 100644
--- a/tools/libxc/xc_domain_save.c
+++ b/tools/libxc/xc_domain_save.c
@@ -1587,6 +1587,17 @@ int xc_domain_save(xc_interface *xch, int io_fd, uint32_t dom, uint32_t max_iter
PERROR("Error when writing the vm86 TSS for guest");
goto out;
}
+
+ chunk.id = -8;
+ xc_get_hvm_param(xch, dom, HVM_PARAM_CONSOLE_PFN,
+ (unsigned long *)&chunk.data);
+
+ if ( (chunk.data != 0) &&
+ wrexact(io_fd, &chunk, sizeof(chunk)) )
+ {
+ PERROR("Error when writing the console pfn for guest");
+ goto out;
+ }
}
/* Zero terminate */