From 5e7164c50c9f6ac531a0e3c7a49b3771ddefb8f3 Mon Sep 17 00:00:00 2001 From: David Hildenbrand Date: Fri, 18 Aug 2017 13:43:51 +0200 Subject: s390x: avoid calling kvm_ functions outside of target/s390x/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let's just introduce an helper. Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: David Hildenbrand Message-Id: <20170818114353.13455-17-david@redhat.com> Signed-off-by: Cornelia Huck --- target/s390x/cpu.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'target/s390x/cpu.c') diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c index 90e2db7b1f..c538a95850 100644 --- a/target/s390x/cpu.c +++ b/target/s390x/cpu.c @@ -471,6 +471,13 @@ bool s390_get_squash_mcss(void) return false; } + +void s390_enable_css_support(S390CPU *cpu) +{ + if (kvm_enabled()) { + kvm_s390_enable_css_support(cpu); + } +} #endif static gchar *s390_gdb_arch_name(CPUState *cs) -- cgit v1.2.3