diff options
author | 2016-10-10 17:28:48 +0200 | |
---|---|---|
committer | 2016-10-17 15:44:49 -0200 | |
commit | 2a138ec3af871cd42a982eb401f16dcb74cba8d3 (patch) | |
tree | c861b9f9dc822383ba6571df94f2a4d097eed6a6 /util/qemu-thread-posix.c | |
parent | intel_iommu: reject broken EIM (diff) | |
download | qemu-2a138ec3af871cd42a982eb401f16dcb74cba8d3.tar.xz qemu-2a138ec3af871cd42a982eb401f16dcb74cba8d3.zip |
target-i386/kvm: cache the return value of kvm_enable_x2apic()
Assume that KVM would have returned the same on subsequent runs.
Abstract the memoizaiton pattern into macros and call it memorize as
adding the r makes it less obscure.
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'util/qemu-thread-posix.c')
0 files changed, 0 insertions, 0 deletions