OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2dbdac
)
tools/lguest: fix features_accepted logic in example launcher.
author
Rusty Russell
<rusty@rustcorp.com.au>
Fri, 13 Feb 2015 06:43:41 +0000
(17:13 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Fri, 13 Feb 2015 06:45:46 +0000
(17:15 +1030)
We were clearing the lower bits when setting the upper bits.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/lguest/lguest.c
patch
|
blob
|
history
diff --git
a/tools/lguest/lguest.c
b/tools/lguest/lguest.c
index
60cabaf
..
b3e73f2
100644
(file)
--- a/
tools/lguest/lguest.c
+++ b/
tools/lguest/lguest.c
@@
-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)