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
@@ -220,6 +220,10 @@
220
220
"syscall": "madvise",
221
221
"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."
222
222
},
223
+
{
224
+
"syscall": "mincore",
225
+
"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
@@ -216,6 +216,10 @@
216
216
"syscall": "madvise",
217
217
"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."
218
218
},
219
+
{
220
+
"syscall": "mincore",
221
+
"comment": "Used by get_memory_dirty_bitmap to check if memory pages are resident"
222
+
},
219
223
{
220
224
"syscall": "mmap",
221
225
"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"
Copy file name to clipboardExpand all lines: src/firecracker/swagger/firecracker.yaml
+61-5Lines changed: 61 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -618,6 +618,35 @@ paths:
618
618
schema:
619
619
$ref: "#/definitions/Error"
620
620
621
+
/memory/mappings:
622
+
get:
623
+
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.
@@ -990,11 +1019,6 @@ definitions:
990
1019
vmm_version:
991
1020
description: MicroVM hypervisor build version.
992
1021
type: string
993
-
memory_regions:
994
-
type: array
995
-
description: The regions of the guest memory.
996
-
items:
997
-
$ref: "#/definitions/GuestMemoryRegionMapping"
998
1022
999
1023
GuestMemoryRegionMapping:
1000
1024
type: object
@@ -1017,6 +1041,38 @@ definitions:
1017
1041
description: The page size in bytes.
1018
1042
type: integer
1019
1043
1044
+
MemoryMappingsResponse:
1045
+
type: object
1046
+
description: Response containing memory region mappings.
1047
+
required:
1048
+
- mappings
1049
+
properties:
1050
+
mappings:
1051
+
type: array
1052
+
description: The memory region mappings.
1053
+
items:
1054
+
$ref: "#/definitions/GuestMemoryRegionMapping"
1055
+
1056
+
MemoryResponse:
1057
+
type: object
1058
+
description: Response containing the memory info (resident and empty pages).
1059
+
required:
1060
+
- resident
1061
+
- empty
1062
+
properties:
1063
+
resident:
1064
+
type: array
1065
+
description: The resident bitmap as a vector of u64 values. Each bit represents if the page is resident.
1066
+
items:
1067
+
type: integer
1068
+
format: uint64
1069
+
empty:
1070
+
type: array
1071
+
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