Changeset 49728 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Nov 29, 2013 2:12:56 PM (11 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r49634 r49728 5189 5189 else if (rc == VERR_ACCESS_DENIED) 5190 5190 { 5191 pReq->u.Out.uResults. Read.fGp= true;5191 pReq->u.Out.uResults.Write.fGp = true; 5192 5192 rc = VINF_SUCCESS; 5193 5193 } -
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r49642 r49728 868 868 869 869 if (idCpu == NIL_RTCPUID) 870 idCpu = RTMpCpuId(); 871 else if (!RTMpIsCpuOnline(idCpu)) 870 rc = rdmsr_safe(uMsr, &u32Low, &u32High); 871 else if (RTMpIsCpuOnline(idCpu)) 872 rc = rdmsr_safe_on_cpu(idCpu, uMsr, &u32Low, &u32High); 873 else 872 874 return VERR_CPU_OFFLINE; 873 rc = rdmsr_safe_on_cpu(idCpu, uMsr, &u32Low, &u32High); 874 if (rc >= 0) 875 if (rc == 0) 875 876 { 876 877 *puValue = RT_MAKE_U64(u32Low, u32High); … … 890 891 891 892 if (idCpu == NIL_RTCPUID) 892 idCpu = RTMpCpuId(); 893 else if (!RTMpIsCpuOnline(idCpu)) 893 rc = wrmsr_safe(uMsr, RT_LODWORD(uValue), RT_HIDWORD(uValue)); 894 else if (RTMpIsCpuOnline(idCpu)) 895 rc = wrmsr_safe_on_cpu(idCpu, uMsr, RT_LODWORD(uValue), RT_HIDWORD(uValue)); 896 else 894 897 return VERR_CPU_OFFLINE; 895 rc = wrmsr_safe_on_cpu(idCpu, uMsr, RT_LODWORD(uValue), RT_HIDWORD(uValue)); 896 if (rc >= 0) 898 if (rc == 0) 897 899 return VINF_SUCCESS; 898 900 return VERR_ACCESS_DENIED; … … 958 960 pReq->u.Out.uResults.Modify.uWritten = uWritten; 959 961 pReq->u.Out.uResults.Modify.uAfter = uAfter; 960 pReq->u.Out.uResults.Modify.fBeforeGp = rcBefore <0;961 pReq->u.Out.uResults.Modify.fModifyGp = rcWrite <0;962 pReq->u.Out.uResults.Modify.fAfterGp = rcAfter <0;963 pReq->u.Out.uResults.Modify.fRestoreGp = rcRestore <0;962 pReq->u.Out.uResults.Modify.fBeforeGp = rcBefore != 0; 963 pReq->u.Out.uResults.Modify.fModifyGp = rcWrite != 0; 964 pReq->u.Out.uResults.Modify.fAfterGp = rcAfter != 0; 965 pReq->u.Out.uResults.Modify.fRestoreGp = rcRestore != 0; 964 966 RT_ZERO(pReq->u.Out.uResults.Modify.afReserved); 965 967 }
Note:
See TracChangeset
for help on using the changeset viewer.