File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 99 ./scripts/upload.sh $(GCP_PROJECT_ID )
1010
1111.PHONY : build-and-upload
12- make build-and-upload : build upload
12+ build-and-upload : build upload
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- # The format will be: v<major>.<minor>.<patch>_g <commit_hash> — e.g. v1.7.2_g8bb88311
5+ # The format will be: v<major>.<minor>.<patch>_ <commit_hash> — e.g. v1.7.2_8bb88311
66# Extract full version from src/firecracker/swagger/firecracker.yaml
77FC_VERSION=$( awk ' /^info:/{flag=1} flag && /^ version:/{print $2; exit}' src/firecracker/swagger/firecracker.yaml)
88commit_hash=$( git rev-parse --short=7 HEAD)
Original file line number Diff line number Diff line change @@ -321,6 +321,8 @@ impl Vm {
321321 // This is the most important optimization - avoids repeated allocations
322322 let zero_buf = vec ! [ 0u8 ; page_size] ;
323323
324+ let sys_page_size = host_page_size ( ) ;
325+
324326 for mapping in & mappings {
325327 // Find the memory region that matches this mapping
326328 let mem_region = guest_memory
@@ -333,7 +335,6 @@ impl Vm {
333335 let num_pages = region_size / page_size;
334336
335337 // Use mincore on the entire region to check residency
336- let sys_page_size = host_page_size ( ) ;
337338 let mincore_pages = region_size. div_ceil ( sys_page_size) ;
338339 let mut mincore_vec = vec ! [ 0u8 ; mincore_pages] ;
339340
You can’t perform that action at this time.
0 commit comments