]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
KVM: x86: hyper-v: disallow configuring SynIC timers with no SynIC
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 24 Sep 2020 14:57:52 +0000 (16:57 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:33 +0000 (07:57 -0400)
commitdbcf3f96fa662bd5e1f93ea7c10a8dd0dce180ae
tree3149d4ffb17215affaefe8390004212c8b1282bc
parentb44f50d87ce2f051909b6bb2509727e05330036c
KVM: x86: hyper-v: disallow configuring SynIC timers with no SynIC

Hyper-V Synthetic timers require SynIC but we don't seem to check that
upon HV_X64_MSR_STIMER[X]_CONFIG/HV_X64_MSR_STIMER0_COUNT writes. Make
the behavior match synic_set_msr().

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200924145757.1035782-3-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c