libxc: bail immediately when PV superpage is discovered
authorWei Liu <wei.liu2@citrix.com>
Wed, 26 Jul 2017 07:44:56 +0000 (08:44 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 27 Jul 2017 10:26:00 +0000 (11:26 +0100)
commita63334ef13e4a43f1265c9117216cd5ae1bdc659
tree5eb4ff5a73cda64a54b7a56c310fa9cd3aeac941
parent595a4987c0a9fcad8773bb9f21c858f9fee0f7d1
libxc: bail immediately when PV superpage is discovered

The original code was added with the hope that PV superpage migration
might work. But it was never proven that the code actually worked.

Now that PV superpage is gone, simplify the code by returning error
immediately.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
tools/libxc/xc_sr_save_x86_pv.c