diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2016-10-10 17:28:48 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-10-17 15:44:49 -0200 |
commit | 2a138ec3af871cd42a982eb401f16dcb74cba8d3 (patch) | |
tree | c861b9f9dc822383ba6571df94f2a4d097eed6a6 /xen-hvm-stub.c | |
parent | fb506e701e9bafa3e0685747c1c98962c52d1962 (diff) |
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 'xen-hvm-stub.c')
0 files changed, 0 insertions, 0 deletions