summary refs log tree commit diff stats
path: root/hw/intc
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2016-10-10 17:28:48 +0200
committerEduardo Habkost <ehabkost@redhat.com>2016-10-17 15:44:49 -0200
commit2a138ec3af871cd42a982eb401f16dcb74cba8d3 (patch)
treec861b9f9dc822383ba6571df94f2a4d097eed6a6 /hw/intc
parentfb506e701e9bafa3e0685747c1c98962c52d1962 (diff)
downloadfocaccia-qemu-2a138ec3af871cd42a982eb401f16dcb74cba8d3.tar.gz
focaccia-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 'hw/intc')
0 files changed, 0 insertions, 0 deletions