You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resources/seccomp/aarch64-unknown-linux-musl.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -212,6 +212,10 @@
212
212
"syscall": "madvise",
213
213
"comment": "Used by the VirtIO balloon device and by musl for some customer workloads. It is also used by aws-lc during random number generation. They setup a memory page that mark with MADV_WIPEONFORK to be able to detect forks. They also call it with -1 to see if madvise is supported in certain platforms."
214
214
},
215
+
{
216
+
"syscall": "mincore",
217
+
"comment": "Used by get_memory_dirty_bitmap to check if memory pages are resident"
Copy file name to clipboardExpand all lines: resources/seccomp/x86_64-unknown-linux-musl.json
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -212,6 +212,10 @@
212
212
"syscall": "madvise",
213
213
"comment": "Used by the VirtIO balloon device and by musl for some customer workloads. It is also used by aws-lc during random number generation. They setup a memory page that mark with MADV_WIPEONFORK to be able to detect forks. They also call it with -1 to see if madvise is supported in certain platforms."
214
214
},
215
+
{
216
+
"syscall": "mincore",
217
+
"comment": "Used by get_memory_dirty_bitmap to check if memory pages are resident"
218
+
},
215
219
{
216
220
"syscall": "mmap",
217
221
"comment": "Used by the VirtIO balloon device",
@@ -524,8 +528,8 @@
524
528
"comment": "sigaltstack is used by Rust stdlib to remove alternative signal stack during thread teardown."
525
529
},
526
530
{
527
-
"syscall": "getrandom",
528
-
"comment": "getrandom is used by `HttpServer` to reinialize `HashMap` after moving to the API thread"
531
+
"syscall": "getrandom",
532
+
"comment": "getrandom is used by `HttpServer` to reinialize `HashMap` after moving to the API thread"
summary: Gets the memory mappings with skippable pages bitmap.
624
+
operationId: getMemoryMappings
625
+
responses:
626
+
200:
627
+
description: OK
628
+
schema:
629
+
$ref: "#/definitions/MemoryMappingsResponse"
630
+
default:
631
+
description: Internal server error
632
+
schema:
633
+
$ref: "#/definitions/Error"
634
+
635
+
/memory:
636
+
get:
637
+
summary: Gets the memory info (resident and empty pages).
638
+
description: Returns an object with resident and empty bitmaps. The resident bitmap marks all pages that are resident. The empty bitmap marks zero pages (subset of resident pages). This is checked at the pageSize of each region. All regions must have the same page size.
639
+
operationId: getMemory
640
+
responses:
641
+
200:
642
+
description: OK
643
+
schema:
644
+
$ref: "#/definitions/MemoryResponse"
645
+
default:
646
+
description: Internal server error
647
+
schema:
648
+
$ref: "#/definitions/Error"
649
+
621
650
/version:
622
651
get:
623
652
summary: Gets the Firecracker version.
@@ -996,11 +1025,6 @@ definitions:
996
1025
vmm_version:
997
1026
description: MicroVM hypervisor build version.
998
1027
type: string
999
-
memory_regions:
1000
-
type: array
1001
-
description: The regions of the guest memory.
1002
-
items:
1003
-
$ref: "#/definitions/GuestMemoryRegionMapping"
1004
1028
1005
1029
GuestMemoryRegionMapping:
1006
1030
type: object
@@ -1023,6 +1047,38 @@ definitions:
1023
1047
description: The page size in bytes.
1024
1048
type: integer
1025
1049
1050
+
MemoryMappingsResponse:
1051
+
type: object
1052
+
description: Response containing memory region mappings.
1053
+
required:
1054
+
- mappings
1055
+
properties:
1056
+
mappings:
1057
+
type: array
1058
+
description: The memory region mappings.
1059
+
items:
1060
+
$ref: "#/definitions/GuestMemoryRegionMapping"
1061
+
1062
+
MemoryResponse:
1063
+
type: object
1064
+
description: Response containing the memory info (resident and empty pages).
1065
+
required:
1066
+
- resident
1067
+
- empty
1068
+
properties:
1069
+
resident:
1070
+
type: array
1071
+
description: The resident bitmap as a vector of u64 values. Each bit represents if the page is resident.
1072
+
items:
1073
+
type: integer
1074
+
format: uint64
1075
+
empty:
1076
+
type: array
1077
+
description: The empty bitmap as a vector of u64 values. Each bit represents if the page is zero (empty). This is a subset of the resident pages.
0 commit comments