diff options
| author | Zhenguo Wang <wangzhenguo@huawei.com> | 2013-07-01 11:58:26 +0200 |
|---|---|---|
| committer | Jan Beulich <jbeulich@suse.com> | 2013-07-01 11:58:26 +0200 |
| commit | a0c56a2b9f5b3232ee83618bd82eb0439e30d2be (patch) | |
| tree | 7cf1089832a771f07fa6256378bdcc9d610ea2cb /tools/lib/sys_string.h | |
| parent | b7fba0ebe61332ebbe671a21950cc9f83750a1f0 (diff) | |
| download | xen-a0c56a2b9f5b3232ee83618bd82eb0439e30d2be.tar.gz xen-a0c56a2b9f5b3232ee83618bd82eb0439e30d2be.tar.bz2 xen-a0c56a2b9f5b3232ee83618bd82eb0439e30d2be.zip | |
x86/HVM: fix x2APIC APIC_ID read emulation
APIC and x2APIC have different format for APIC_ID register. Need
translation.
Signed-off-by: Zhenguo Wang <wangzhenguo@huawei.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@huawei.com>
Convert code to use switch(), fixing coding style issue at once, and
use GET_xAPIC_ID() on the value read instead of VLAPIC_ID() (reading
the field again).
In the course of this also properly reject both read and writes on the
non-existing MSR corresponding to APIC_ICR2.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
master commit: 6859874b61d5ddaf5289e72ed2b2157739b72ca5
master date: 2013-06-11 09:45:55 +0200
Diffstat (limited to 'tools/lib/sys_string.h')
0 files changed, 0 insertions, 0 deletions
