]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/i386: Remove unuseful kvmclock_create() stub
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 20 Jun 2023 05:18:12 +0000 (07:18 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 31 Aug 2023 17:47:43 +0000 (19:47 +0200)
commitb797c98de4106b0d8cd1daa7d32f31e47e9f1d46
tree1588414dcf9add5f74bd9092a871a6a28abf259f
parentf8324611c1ec100fd601842d3943cbf8acd1420f
hw/i386: Remove unuseful kvmclock_create() stub

We shouldn't call kvmclock_create() when KVM is not available
or disabled:
 - check for kvm_enabled() before calling it
 - assert KVM is enabled once called
Since the call is elided when KVM is not available, we can
remove the stub (it is never compiled).

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230620083228.88796-2-philmd@linaro.org>
hw/i386/kvm/clock.c
hw/i386/microvm.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/kvm/clock.h