mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
s390x/kvm: pass values instead of pointers to kvm_s390_set_clock_*()
We are going to factor out the TOD into a separate device and use const pointers for device class functions where possible. We are passing right now ordinary pointers that should never be touched when setting the TOD. Let's just pass the values directly. Note that s390_set_clock() will be removed in a follow-on patch and therefore its calling convention is not changed. Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20180627134410.4901-3-david@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
14055ce53c
commit
4ab6a1feac
4 changed files with 12 additions and 12 deletions
|
@ -413,9 +413,9 @@ int s390_set_clock(uint8_t *tod_high, uint64_t *tod_low)
|
|||
int r = 0;
|
||||
|
||||
if (kvm_enabled()) {
|
||||
r = kvm_s390_set_clock_ext(tod_high, tod_low);
|
||||
r = kvm_s390_set_clock_ext(*tod_high, *tod_low);
|
||||
if (r == -ENXIO) {
|
||||
return kvm_s390_set_clock(tod_high, tod_low);
|
||||
return kvm_s390_set_clock(*tod_high, *tod_low);
|
||||
}
|
||||
}
|
||||
/* Fixme TCG */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue