[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4815B88B.3010909@qumranet.com>
Date: Mon, 28 Apr 2008 14:44:11 +0300
From: Avi Kivity <avi@...ranet.com>
To: Harvey Harrison <harvey.harrison@...il.com>
CC: LKML <linux-kernel@...r.kernel.org>,
Izik Eidus <izike@...ranet.com>,
kvm-devel <kvm-devel@...ts.sourceforge.net>
Subject: Re: kvm: how big is type?
Harvey Harrison wrote:
> arch/x86/kvm/x86.c:3484:25: warning: cast truncates bits from constant value (100 becomes 0)
> arch/x86/kvm/x86.c:3510:24: warning: cast truncates bits from constant value (100 becomes 0)
>
> The problem:
> cseg_desc.type &= ~(1 << 8); //clear the B flag
> nseg_desc.type |= (1 << 8);
>
> type is a 4-bit bitfield on x86....please look into this.
>
>
I think it ought to be (1 << 1), not (1 << 8), as it refers to the
"busy" bit of the task type. Izik?
--
error compiling committee.c: too many arguments to function
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists