Skip to content

Commit

Permalink
tools/lguest: fix features_accepted logic in example launcher.
Browse files Browse the repository at this point in the history
We were clearing the lower bits when setting the upper bits.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Feb 13, 2015
1 parent d2dbdac commit 53aceb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lguest/lguest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ static void emulate_mmio_write(struct device *d, u32 off, u32 val, u32 mask)
d->features_accepted |= val;
} else {
assert(d->mmio->cfg.guest_feature_select == 1);
d->features_accepted &= ((u64)0xFFFFFFFF << 32);
d->features_accepted &= 0xFFFFFFFF;
d->features_accepted |= ((u64)val) << 32;
}
if (d->features_accepted & ~d->features)
Expand Down

0 comments on commit 53aceb4

Please sign in to comment.