]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[hyperv] Do not fail if guest OS ID MSR is already set
authorMichael Brown <mcb30@ipxe.org>
Tue, 25 Apr 2017 12:33:52 +0000 (13:33 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 26 Apr 2017 19:15:39 +0000 (20:15 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/drivers/hyperv/hyperv.c

index cc6e38688d61b1396f38d9493e3b537dd1f7df68..8298f20976d500563033d83124982bf1054a1c7a 100644 (file)
@@ -245,9 +245,8 @@ static int hv_map_hypercall ( struct hv_hypervisor *hv ) {
        /* Report guest OS identity */
        guest_os_id = rdmsr ( HV_X64_MSR_GUEST_OS_ID );
        if ( guest_os_id != 0 ) {
-               DBGC ( hv, "HV %p guest OS ID MSR already set to %#08llx\n",
+               DBGC ( hv, "HV %p guest OS ID MSR was %#08llx\n",
                       hv, guest_os_id );
-               return -EBUSY;
        }
        guest_os_id = HV_GUEST_OS_ID_IPXE;
        DBGC2 ( hv, "HV %p guest OS ID MSR is %#08llx\n", hv, guest_os_id );