public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kvm: how big is type?
@ 2008-04-27 19:18 Harvey Harrison
  2008-04-28 11:44 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Harvey Harrison @ 2008-04-27 19:18 UTC (permalink / raw)
  To: Avi Kivity; +Cc: LKML

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.

Harvey


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-04-28 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-27 19:18 kvm: how big is type? Harvey Harrison
2008-04-28 11:44 ` Avi Kivity
2008-04-28 15:23   ` Izik Eidus
2008-04-28 16:10     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox