s390/kvm: Support for get/set of extended TOD-Clock for guest
commit7edd4a4967536f9e1a6474223e824049a13dd39c
authorCollin L. Walling <walling@linux.vnet.ibm.com>
Wed, 4 Oct 2017 10:57:50 +0000 (4 12:57 +0200)
committerCornelia Huck <cohuck@redhat.com>
Fri, 6 Oct 2017 08:53:02 +0000 (6 10:53 +0200)
tree1b02c94e7a63a5dcc85bfed29d4b7b3b4edd996b
parent489c909f097a387eb6913c89cf1851750397110c
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]
target/s390x/cpu.c
target/s390x/kvm-stub.c
target/s390x/kvm.c
target/s390x/kvm_s390x.h