diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-10-04 12:54:38 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-10-04 12:54:38 +0200 |
commit | ef912fbf2eadfa34e61210430117b6c2a4f7c567 (patch) | |
tree | 480b24c7200659d8bec8caabb8d169119b52c0ea | |
parent | d4fede3b1248c034901c0e3e901d7400d8dbbed1 (diff) | |
download | xen-ef912fbf2eadfa34e61210430117b6c2a4f7c567.tar.gz xen-ef912fbf2eadfa34e61210430117b6c2a4f7c567.tar.bz2 xen-ef912fbf2eadfa34e61210430117b6c2a4f7c567.zip |
x86: allow HVM guests to make console_io hypercall
The console_io hypercall is provided for PV guests and for HVM
guests it is done via the 0xe9 port. However the PV hypercall
is more efficient as it takes a string rather than one character
per write.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
-rw-r--r-- | xen/arch/x86/hvm/hvm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index a1a7780fcb..de81e4523d 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -3304,6 +3304,7 @@ static hvm_hypercall_t *const hvm_hypercall64_table[NR_hypercalls] = { [ __HYPERVISOR_vcpu_op ] = (hvm_hypercall_t *)hvm_vcpu_op, [ __HYPERVISOR_physdev_op ] = (hvm_hypercall_t *)hvm_physdev_op, HYPERCALL(xen_version), + HYPERCALL(console_io), HYPERCALL(event_channel_op), HYPERCALL(sched_op), HYPERCALL(set_timer_op), @@ -3323,6 +3324,7 @@ static hvm_hypercall_t *const hvm_hypercall32_table[NR_hypercalls] = { [ __HYPERVISOR_vcpu_op ] = (hvm_hypercall_t *)hvm_vcpu_op_compat32, [ __HYPERVISOR_physdev_op ] = (hvm_hypercall_t *)hvm_physdev_op_compat32, COMPAT_CALL(xen_version), + HYPERCALL(console_io), HYPERCALL(event_channel_op), COMPAT_CALL(sched_op), COMPAT_CALL(set_timer_op), |