-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tool: add tests for parsing virtual machines
Signed-off-by: Ivan-Velickovic <[email protected]>
- Loading branch information
1 parent
cf833e9
commit f8ddfbb
Showing
10 changed files
with
196 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2024, UNSW | ||
SPDX-License-Identifier: BSD-2-Clause | ||
--> | ||
<system> | ||
<protection_domain name="parent"> | ||
<program_image path="parent.elf" /> | ||
<protection_domain name="child1" id="0"> | ||
<program_image path="child.elf" /> | ||
</protection_domain> | ||
<virtual_machine name="guest1"> | ||
<vcpu id="0" /> | ||
</virtual_machine> | ||
</protection_domain> | ||
</system> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2021, Breakaway Consulting Pty. Ltd. | ||
SPDX-License-Identifier: BSD-2-Clause | ||
--> | ||
<system> | ||
<protection_domain name="hello1"> | ||
<program_image path="hello.elf" /> | ||
<virtual_machine name="guest"> | ||
<vcpu id="0" /> | ||
</virtual_machine> | ||
</protection_domain> | ||
<protection_domain name="hello2"> | ||
<program_image path="hello.elf" /> | ||
<virtual_machine name="guest"> | ||
<vcpu id="0" /> | ||
</virtual_machine> | ||
</protection_domain> | ||
</system> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2024, UNSW | ||
SPDX-License-Identifier: BSD-2-Clause | ||
--> | ||
<system> | ||
<protection_domain name="pd"> | ||
<virtual_machine name="guest"> | ||
<vcpu id="0" cpu="300" /> | ||
</virtual_machine> | ||
</protection_domain> | ||
</system> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2024, UNSW | ||
SPDX-License-Identifier: BSD-2-Clause | ||
--> | ||
<system> | ||
<protection_domain name="pd"> | ||
<virtual_machine name="guest"> | ||
<vcpu id="300" /> | ||
</virtual_machine> | ||
</protection_domain> | ||
</system> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2021, Breakaway Consulting Pty. Ltd. | ||
SPDX-License-Identifier: BSD-2-Clause | ||
--> | ||
<system> | ||
<protection_domain name="hello" priority="254"> | ||
<program_image path="hello.elf" /> | ||
<virtual_machine name="guest"> | ||
<vcpu id="0" /> | ||
<map mr="mr1" perms="rw" vaddr="0x1_000_000" /> | ||
</virtual_machine> | ||
</protection_domain> | ||
</system> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2024, UNSW | ||
SPDX-License-Identifier: BSD-2-Clause | ||
--> | ||
<system> | ||
<protection_domain name="pd"> | ||
<virtual_machine name="guest"> | ||
</virtual_machine> | ||
</protection_domain> | ||
</system> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2024, UNSW | ||
SPDX-License-Identifier: BSD-2-Clause | ||
--> | ||
<system> | ||
<protection_domain name="pd"> | ||
<virtual_machine name="guest"> | ||
<vcpu /> | ||
</virtual_machine> | ||
</protection_domain> | ||
</system> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2024, UNSW | ||
SPDX-License-Identifier: BSD-2-Clause | ||
--> | ||
<system> | ||
<virtual_machine name="guest"> | ||
<vcpu id="0" /> | ||
</virtual_machine> | ||
</system> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2021, Breakaway Consulting Pty. Ltd. | ||
SPDX-License-Identifier: BSD-2-Clause | ||
--> | ||
<system> | ||
<memory_region name="mr1" size="0x1000" /> | ||
<memory_region name="mr2" size="0x1000" /> | ||
<protection_domain name="hello" priority="254"> | ||
<program_image path="hello.elf" /> | ||
<virtual_machine name="guest"> | ||
<vcpu id="0" /> | ||
<map mr="mr1" perms="rw" vaddr="0x1_000_000" /> | ||
<map mr="mr2" perms="rw" vaddr="0x1_000_000" /> | ||
</virtual_machine> | ||
</protection_domain> | ||
</system> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters