aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/hvm
Commit message (Collapse)AuthorAgeFilesLines
* Fix emacs local variable block to use correct C style variable.David Vrabel2013-02-211-1/+1
| | | | | | | The emacs variable to set the C style from a local variable block is c-file-style, not c-set-style. Signed-off-by: David Vrabel <david.vrabel@citrix.com
* x86/hvm: mark save/restore registration code __initJan Beulich2012-09-141-5/+5
| | | | | Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* replace bogus gdprintk() uses with {,d}printk()Jan Beulich2012-02-161-27/+29
| | | | | | | | | | | When the subject domain is not the current one (e.g. during domctl or HVM save/restore handling), use of gdprintk() is questionable at best, as it won't give the intended information on what domain is affected. Use plain printk() or dprintk() instead, but keep things (mostly) as guest messages by using XENLOG_G_*. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* hvm save: Introduce hvm_load_entry_zeroextend().Keir Fraser2010-12-151-4/+10
| | | | | | | | | | In certain cases this will allow us to load old HVM save images where an HVM saved chunk has subsequently been extended with new fields. Rather than fail to load the chunk, we can pad the extended structure with zeroes, if the caller knows how to handle that. Signed-off-by: Keir Fraser <keir@xen.org> Acked-by: Tim Deegan <Tim.Deegan@citrix.com>
* hvm save: Move some inline functions into common/hvm/save.cKeir Fraser2010-12-151-0/+57
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* xen: allow HVM save/restore from different changesetsKeir Fraser2010-07-091-17/+0
| | | | | | | | Allow HVM save/restore from different changesets of Xen. The HVM save records are supposed to be backwards compatible; XenServer live-migrates between versions of Xen during upgrades. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* Add a new domctl to get a single record from the HVM save contextKeir Fraser2009-02-051-0/+48
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* Do not allow HVM save/restore of a dying domain.Keir Fraser2008-07-021-0/+6
| | | | | | | | | | | | It's not a sensible thing to do, and it is easier than auditing all state save/restore functions for safety (most importantly, racing against domain_relinquish_resources). Also place a spin_barrier on domain_lock after asserting d->is_dying, allowing critical regions under the domain_lock to safely check is_dying and avoid races with domain_relinquish_resources(). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Clean up buf_ioreq handling.Keir Fraser2007-11-081-2/+2
| | | | | | Also, disable stdvga caching on hvm save/restore, as the shadow vga state is not preserved. Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Split save.c into arch generic/specific part.Keir Fraser2007-10-182-0/+219
struct hvm_save_header is arch specific so that arch specific part of hvm_save()/hvm_load() are moved into arch_hvm_save()/acrh_hvm_load() Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>