]> git.proxmox.com Git - mirror_qemu.git/commit
target-i386/kvm: cache the return value of kvm_enable_x2apic()
authorRadim Krčmář <rkrcmar@redhat.com>
Mon, 10 Oct 2016 15:28:48 +0000 (17:28 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 17 Oct 2016 17:44:49 +0000 (15:44 -0200)
commit2a138ec3af871cd42a982eb401f16dcb74cba8d3
treec861b9f9dc822383ba6571df94f2a4d097eed6a6
parentfb506e701e9bafa3e0685747c1c98962c52d1962
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>
target-i386/kvm.c