summaryrefslogtreecommitdiffstats
path: root/target/s390x/kvm-stub.c
diff options
context:
space:
mode:
authorCollin L. Walling2017-10-04 12:57:50 +0200
committerCornelia Huck2017-10-06 10:53:02 +0200
commit7edd4a4967536f9e1a6474223e824049a13dd39c (patch)
tree1b02c94e7a63a5dcc85bfed29d4b7b3b4edd996b /target/s390x/kvm-stub.c
parents390x/css: fix css migration compat handling (diff)
downloadqemu-7edd4a4967536f9e1a6474223e824049a13dd39c.tar.gz
qemu-7edd4a4967536f9e1a6474223e824049a13dd39c.tar.xz
qemu-7edd4a4967536f9e1a6474223e824049a13dd39c.zip
s390/kvm: Support for get/set of extended TOD-Clock for guest
Provides an interface for getting and setting the guest's extended TOD-Clock via a single ioctl to kvm. If the ioctl fails because it is not support by kvm, then we fall back to the old style of retrieving the clock via two ioctls. Signed-off-by: Collin L. Walling <walling@linux.vnet.ibm.com> Reviewed-by: Eric Farman <farman@linux.vnet.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> [split failure change from epoch index change] Message-Id: <20171004105751.24655-2-borntraeger@de.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com> [some cosmetic fixes]
Diffstat (limited to 'target/s390x/kvm-stub.c')
-rw-r--r--target/s390x/kvm-stub.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/s390x/kvm-stub.c b/target/s390x/kvm-stub.c
index 261e1cdc44..43f02c2d69 100644
--- a/target/s390x/kvm-stub.c
+++ b/target/s390x/kvm-stub.c
@@ -68,11 +68,21 @@ int kvm_s390_get_clock(uint8_t *tod_high, uint64_t *tod_low)
return -ENOSYS;
}
+int kvm_s390_get_clock_ext(uint8_t *tod_high, uint64_t *tod_low)
+{
+ return -ENOSYS;
+}
+
int kvm_s390_set_clock(uint8_t *tod_high, uint64_t *tod_low)
{
return -ENOSYS;
}
+int kvm_s390_set_clock_ext(uint8_t *tod_high, uint64_t *tod_low)
+{
+ return -ENOSYS;
+}
+
void kvm_s390_enable_css_support(S390CPU *cpu)
{
}