diff options
author | David Hildenbrand | 2017-08-18 13:43:51 +0200 |
---|---|---|
committer | Cornelia Huck | 2017-08-30 18:23:25 +0200 |
commit | 5e7164c50c9f6ac531a0e3c7a49b3771ddefb8f3 (patch) | |
tree | 1d20e6d48e59ce7d72439f939fb595d74e813a84 /hw/s390x/s390-virtio-ccw.c | |
parent | target/s390x: move a couple of functions to cpu.c (diff) | |
download | qemu-5e7164c50c9f6ac531a0e3c7a49b3771ddefb8f3.tar.gz qemu-5e7164c50c9f6ac531a0e3c7a49b3771ddefb8f3.tar.xz qemu-5e7164c50c9f6ac531a0e3c7a49b3771ddefb8f3.zip |
s390x: avoid calling kvm_ functions outside of target/s390x/
Let's just introduce an helper.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170818114353.13455-17-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'hw/s390x/s390-virtio-ccw.c')
-rw-r--r-- | hw/s390x/s390-virtio-ccw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index 42f0edac36..dd504dd5ae 100644 --- a/hw/s390x/s390-virtio-ccw.c +++ b/hw/s390x/s390-virtio-ccw.c @@ -144,9 +144,7 @@ static void ccw_init(MachineState *machine) /* register hypercalls */ virtio_ccw_register_hcalls(); - if (kvm_enabled()) { - kvm_s390_enable_css_support(s390_cpu_addr2state(0)); - } + s390_enable_css_support(s390_cpu_addr2state(0)); /* * Non mcss-e enabled guests only see the devices from the default * css, which is determined by the value of the squash_mcss property. |