This patchset fixes some APICV issues, including a potential issue while doing live migration and enabling APICV while guest is in X2APIC mode. PATCH 1/2: Xen: Fix live migration while enabling APICV. PATCH 2/2: Xen: Fix VMCS setting for x2APIC mode guest while enabling APICV. Changes v1 to v2 According to Keir''s comment, don''t change the save/restore order for compatibility.