Skip to content

Commit 3fd3b7f

Browse files
authored
Fix scratch overlapping apic on i686 (#1393)
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
1 parent 6ea9816 commit 3fd3b7f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/hyperlight_common/src/arch/i686/layout.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ limitations under the License.
1818
// allow compiling the guest for real mode boot scenarios.
1919

2020
pub const MAX_GVA: usize = 0xffff_ffff;
21-
pub const MAX_GPA: usize = 0xffff_ffff;
21+
/// Set below the KVM APIC access page at 0xFEE00000 to avoid EEXIST when scratch
22+
/// regions are large enough to reach that address.
23+
pub const MAX_GPA: usize = 0xFEDF_FFFF;
2224

2325
pub fn min_scratch_size(_input_data_size: usize, _output_data_size: usize) -> usize {
2426
crate::vmem::PAGE_SIZE

0 commit comments

Comments
 (0)