aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio/virtio-input-host-pci.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2021-04-22 18:11:19 +0200
committerEduardo Habkost <ehabkost@redhat.com>2021-05-31 15:53:03 -0400
commita8439be6b76e7f1dd631a49662314bc58e6c4ee0 (patch)
tree64019fed52eca99dee1c63c7bec70d9928166684 /hw/virtio/virtio-input-host-pci.c
parent061817a7ccd9e1c028153f308c541c299a009ef8 (diff)
downloadqemu-a8439be6b76e7f1dd631a49662314bc58e6c4ee0.zip
qemu-a8439be6b76e7f1dd631a49662314bc58e6c4ee0.tar.gz
qemu-a8439be6b76e7f1dd631a49662314bc58e6c4ee0.tar.bz2
i386: introduce hv_cpuid_cache
Just like with cpuid_cache, it makes no sense to call KVM_GET_SUPPORTED_HV_CPUID more than once and instead of (ab)using env->features[] and/or trying to keep all the code in one place, it is better to introduce persistent hv_cpuid_cache and hv_cpuid_get_host() accessor to it. Note, hv_cpuid_get_fw() is converted to using hv_cpuid_get_host() just to be removed later with Hyper-V specific feature words. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20210422161130.652779-9-vkuznets@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/virtio/virtio-input-host-pci.c')
0 files changed, 0 insertions, 0 deletions