x86/HVM: clean up HVMOP_set_mem_type processing
authorJan Beulich <jbeulich@suse.com>
Fri, 2 May 2014 08:56:23 +0000 (10:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 May 2014 08:56:23 +0000 (10:56 +0200)
commitc25c52e3f779706d3658b75627e665f88c6e79e2
treeae09dbeee8e1dffe306debb86f3501176f5e6827
parent8cb7f7d135455f7374c96406e3d148a282e8cb31
x86/HVM: clean up HVMOP_set_mem_type processing

- drop unused variable "mfn"
- consistently do not use "else" when the prior "if" ends in "goto"
- use printk() referencing the target domain instead of gdprintk()
  (which references the current domain) and slightly shorten message
- annotate -EINVAL results in paging/shared paths to actually need
  switching to -EAGAIN (possible only when preemption logic got fixed
  to use -ERESTART)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c