tools/misc/xen-hvmctx: fix the build
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 29 Mar 2016 15:55:23 +0000 (16:55 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 29 Mar 2016 17:04:43 +0000 (13:04 -0400)
Commit 78c5f59e "x86/hvm/viridian: save APIC assist vector" changed
the name of a field in the viridian vcpu save record. Unfortunately this
record has a decode function in xen-hvmctx and so it no longer builds.

This patch fixes the field name in xen-hvmctx and also adds a decode of
the additional field that was added to the save record.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/misc/xen-hvmctx.c

index 5a69245713f799b315745ff22e7c8f1790a24804..32be12086a22326f1445bca906963dfd96cc3515 100644 (file)
@@ -379,8 +379,9 @@ static void dump_viridian_vcpu(void)
 {
     HVM_SAVE_TYPE(VIRIDIAN_VCPU) p;
     READ(p);
-    printf("    VIRIDIAN_VCPU: apic_assist 0x%llx\n",
-           (unsigned long long) p.apic_assist);           
+    printf("    VIRIDIAN_VCPU: apic_assist_msr 0x%llx, apic_assist_vector 0x%x\n",
+          (unsigned long long) p.apic_assist_msr,
+          p.apic_assist_vector);
 }
 
 static void dump_vmce_vcpu(void)