Made a wrong copy from old i386. the mask should be 0xff and clear in
debug message too. reattached.

> 
> GET_APIC_ID may use genapic instance for some machine
> configuration in i386 architecture, but it is not exported
> for outside usage. This patch remove this reference.
> 
> Signed-off-by: Yaozu(Eddie) Dong <[EMAIL PROTECTED]>
> 
> diff --git a/drivers/kvm/lapic.c b/drivers/kvm/lapic.c
> index a894dee..84bc4e3 100644
> --- a/drivers/kvm/lapic.c
> +++ b/drivers/kvm/lapic.c
> @@ -110,7 +110,7 @@ static inline int apic_enabled(struct kvm_lapic
> *apic) 
> 
> static inline int kvm_apic_id(struct kvm_lapic *apic) {
> -     return GET_APIC_ID(apic_get_reg(apic, APIC_ID));
> +     return (apic_get_reg(apic, APIC_ID) >> 24) & 0xf; }
> 
> static inline int apic_lvt_enabled(struct kvm_lapic *apic, int
> lvt_type)

Attachment: genapic.patch
Description: genapic.patch

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to