summaryrefslogtreecommitdiff
path: root/sys/xen
diff options
context:
space:
mode:
authorRoger Pau Monné <royger@FreeBSD.org>2015-10-08 16:39:43 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2015-10-08 16:39:43 +0000
commita231723cc0b0655bf6cbe77e3b2fc34d05525fda (patch)
tree4d554b6933c62f969ce512c3c8dce2e0ef744afd /sys/xen
parent889592b876842ab5e12aac1e0ddc4a58b3c95cfd (diff)
downloadsrc-test2-a231723cc0b0655bf6cbe77e3b2fc34d05525fda.tar.gz
src-test2-a231723cc0b0655bf6cbe77e3b2fc34d05525fda.zip
xen/console: Introduce a new console driver for Xen guest
The current Xen console driver is crashing very quickly when using it on an ARM guest. This is because the console lock is recursive and it may lead to recursion on the tty lock and/or corrupt the ring pointer. Furthermore, the console lock is not always taken where it should be and has to be released too early because of the way the console has been designed. Over the years, code has been modified to support various new features but the driver has not been reworked. This new driver has been rewritten with the idea of only having a small set of specific function to write either via the shared ring or the hypercall interface. Note that HVM support has been left aside for now because it requires additional features which are not yet supported. A follow-up patch will be sent with HVM guest support. List of items that may be good to have but not mandatory: - Avoid to flush for each character written when using the tty - Support multiple consoles Submitted by: Julien Grall <julien.grall@citrix.com> Reviewed by: royger Differential Revision: https://reviews.freebsd.org/D3698 Sponsored by: Citrix Systems R&D
Notes
Notes: svn path=/head/; revision=289033
Diffstat (limited to 'sys/xen')
-rw-r--r--sys/xen/hypervisor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/xen/hypervisor.h b/sys/xen/hypervisor.h
index 0d93f66dbd18..42cdb3bcf5ee 100644
--- a/sys/xen/hypervisor.h
+++ b/sys/xen/hypervisor.h
@@ -57,7 +57,7 @@ extern start_info_t *xen_start_info;
extern uint64_t get_system_time(int ticks);
static inline int
-HYPERVISOR_console_write(char *str, int count)
+HYPERVISOR_console_write(const char *str, int count)
{
return HYPERVISOR_console_io(CONSOLEIO_write, count, str);
}