target/i386/kvm.c: Handle renaming of KVM_HINTS_DEDICATED
commit2af1acadc22e86b9fff7b2cd73ea9c779ba1a065
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 25 May 2018 13:27:53 +0000 (25 14:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Jun 2018 13:14:31 +0000 (1 15:14 +0200)
treed677936f6031b6d8de9eab9e18d0728c57e1ee8e
parentf5bba4ca92b1fb9b6ff063895103a31d66ceac06
target/i386/kvm.c: Handle renaming of KVM_HINTS_DEDICATED

In kernel header commit 633711e8287, the define KVM_HINTS_DEDICATED
was renamed to KVM_HINTS_REALTIME. Work around this compatibility
break by (a) using the new constant name, and (b) defining it
if the headers don't.

Part (b) can be removed once we've updated our copy of the kernel
headers to a version that defines KVM_HINTS_REALTIME.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20180525132755.21839-5-peter.maydell@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm.c