diff options
author | Michael <gbps@ctf.re> | 2018-12-08 19:10:01 +0300 |
---|---|---|
committer | Alex Ionescu <ionescu007@users.noreply.github.com> | 2018-12-09 04:51:37 +0300 |
commit | 989d33b1bc6569965d7aad3bd50a8d35fa4c359e (patch) | |
tree | e396de4bffeeebe2cdd65be7fb650544a7514063 | |
parent | e4a9bd6d91e829b5f42266943d5fb92fecd0a402 (diff) |
-rw-r--r-- | shvvmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -96,7 +96,7 @@ ShvVmxMtrrAdjustEffectiveMemoryType ( // Check if this large page falls within the boundary. If a single // physical page (4KB) touches it, we need to override the entire 2MB. // - if (((LargePageAddress + _2MB - 1) >= VpData->MtrrData[i].PhysicalAddressMin) && + if (((LargePageAddress + (_2MB - 1)) >= VpData->MtrrData[i].PhysicalAddressMin) && (LargePageAddress <= VpData->MtrrData[i].PhysicalAddressMax)) { // |