[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] hvmloader: clear the whole shared-info page when shutting down xenbus
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1279808365 -3600 # Node ID bba5ac2066c8dc2896ba6253813a06de74309c23 # Parent e8dbc1262f52f0d710dc73e43aafc42ed9d7e31b hvmloader: clear the whole shared-info page when shutting down xenbus since the contents might be in the wrong word-size for later users. Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx> --- tools/firmware/hvmloader/xenbus.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -r e8dbc1262f52 -r bba5ac2066c8 tools/firmware/hvmloader/xenbus.c --- a/tools/firmware/hvmloader/xenbus.c Wed Jul 21 09:02:10 2010 +0100 +++ b/tools/firmware/hvmloader/xenbus.c Thu Jul 22 15:19:25 2010 +0100 @@ -63,9 +63,8 @@ void xenbus_shutdown(void) * having used the rings. */ memset(rings, 0, sizeof *rings); - /* Clear the xenbus event-channel too */ - get_shared_info()->evtchn_pending[event / sizeof (unsigned long)] - &= ~(1UL << ((event % sizeof (unsigned long)))); + /* Clear the event-channel state too. */ + memset(get_shared_info(), 0, PAGE_SIZE); rings = NULL; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |