Skip to contentSkip to conversation

tools/misc/xen-hvmctx: fix the build

PATCH In review Paul Durrant 3 participants 3 messages Mar 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/misc/xen-hvmctx: fix the build

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.

Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Wei Liu <[email protected]>
---
 tools/misc/xen-hvmctx.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
tools/misc/xen-hvmctx.c +3 -2
index 5a69245..32be120 100644
@@ -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)
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Paul Durrant

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.

Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Wei Liu <[email protected]>
Quoted 23 lines
---
 tools/misc/xen-hvmctx.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
tools/misc/xen-hvmctx.c +3 -2
index 5a69245..32be120 100644
@@ -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)
Signature · 1 line
2.1.4

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 8 lines · Wei Liu
Quoted 7 lines · Paul Durrant

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.

Quoted 6 lines
Quoted 4 lines
Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Wei Liu <[email protected]>

And applied.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel