Skip to content

Commit a0f6e75

Browse files
committed
[hyperv] Do not fail if guest OS ID MSR is already set
Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 parent 648657b commit a0f6e75

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/arch/x86/drivers/hyperv/hyperv.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,8 @@ static int hv_map_hypercall ( struct hv_hypervisor *hv ) {
245245
/* Report guest OS identity */
246246
guest_os_id = rdmsr ( HV_X64_MSR_GUEST_OS_ID );
247247
if ( guest_os_id != 0 ) {
248-
DBGC ( hv, "HV %p guest OS ID MSR already set to %#08llx\n",
248+
DBGC ( hv, "HV %p guest OS ID MSR was %#08llx\n",
249249
hv, guest_os_id );
250-
return -EBUSY;
251250
}
252251
guest_os_id = HV_GUEST_OS_ID_IPXE;
253252
DBGC2 ( hv, "HV %p guest OS ID MSR is %#08llx\n", hv, guest_os_id );

0 commit comments

Comments
 (0)