mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
b6089b059c
commit
5e7164c50c
3 changed files with 9 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue