lkml.org 
[lkml]   [2008]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectkvm: how big is type?
From
Date
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



\
 
 \ /
  Last update: 2008-04-27 21:21    [W:0.069 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site