]> xenbits.xensource.com Git - people/royger/xen.git/commit
hvm_save_one: return correct data
authorDon Slutz <dslutz@verizon.com>
Wed, 8 Jan 2014 08:15:03 +0000 (09:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Jan 2014 08:15:03 +0000 (09:15 +0100)
commite019c606f598eb76585cc5d26a242a40dfc4d580
treed78cd0bfec0092efb39c80631c6f02b85a8d34b7
parent244ce6f42d1843c02be36ed808452df570378cb1
hvm_save_one: return correct data

It is possible that hvm_sr_handlers[typecode].save does not use all
the provided room.  Also it can use variable sized records.  In both
cases, using:

   instance * hvm_sr_handlers[typecode].size

does not select the correct instance.  Add code to search for the
correct instance.

Signed-off-by: Don Slutz <dslutz@verizon.com>
Release-acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/hvm/save.c