bunnie
30bdecc2a0
fix return type of register swap syscall
2024-03-31 17:48:32 +08:00
bunnie
0e756003a1
debugging around the swapper protected context calls
2024-03-31 17:25:47 +08:00
bunnie
504253a033
more tid recording
2024-03-31 17:25:05 +08:00
bunnie
03388b1413
add tid reporting
2024-03-31 17:23:54 +08:00
bunnie
ecbce84385
add some debug & add state visibility
...
@xobs made the `state` element of a process publicly read-only visible
through a function call. I don't think this is a security issue but
please lmk if that's a problem.
2024-03-31 17:21:54 +08:00
bunnie
1af43fba7b
track current tid in swap manager
2024-03-31 17:20:50 +08:00
bunnie
2c183c2e18
improve debug output on swapper
2024-03-31 17:20:26 +08:00
bunnie
cc49867403
fix warnings from rust 1.77.0 upgrade
2024-03-29 09:45:49 +08:00
bunnie
2d68807d51
Merge branch 'main' into swap
2024-03-28 18:39:19 -07:00
bunnie
82fdcaadd6
Merge pull request #518 from betrusted-io/cleanup-c25519
...
Cleanup c25519
2024-03-28 04:28:36 -04:00
bunnie
17f54319da
remove engine-25519 from lock file
2024-03-28 16:23:51 +08:00
bunnie
df5923e092
remove engine25519 from workspace
2024-03-28 16:23:32 +08:00
bunnie
bf9acfc082
bump release notes
2024-03-28 16:23:25 +08:00
bunnie
712fd4569b
remove engine-25519 as it is now deprecated
...
also remove "bencharks" as default set in shellchat
2024-03-28 16:22:37 +08:00
bunnie
0106861eb4
bump release notes
2024-03-28 16:18:45 +08:00
bunnie
f414f5a5ab
update gh ref to latest curve25519-dalek main
2024-03-28 16:17:13 +08:00
bunnie
916ca5f062
use auto-release API and note benchmark results
2024-03-28 16:16:45 +08:00
bunnie
05a7c4ca7e
use auto-release of accelerator hardware
2024-03-28 16:15:29 +08:00
bunnie
6d8c60f98c
Merge pull request #517 from betrusted-io/curve25519-fixup
...
Curve25519 fixup
2024-03-25 08:11:19 +08:00
bunnie
8a39491532
don't include benchmarks in the default shellchat config
2024-03-25 08:08:21 +08:00
bunnie
4eab8a35b5
don't try to release hardware in hosted mode
2024-03-25 08:08:06 +08:00
bunnie
135c2c2ec0
absorb engine25519-as warning fixes
2024-03-25 08:07:47 +08:00
bunnie
fbffd9878f
absorb engine25519-as warning fixes
2024-03-25 08:07:26 +08:00
bunnie
464692e544
absorb curve25519 upstream pin changes
2024-03-25 08:07:08 +08:00
bunnie
a6ff652e48
Merge pull request #514 from betrusted-io/curve25519
...
Curve25519
2024-03-25 07:10:34 +08:00
bunnie
1cc0a7121b
Point curve25519 patch to the github version
2024-03-25 07:08:27 +08:00
bunnie
c0484ca607
chore: fix formatting
2024-03-23 12:02:54 +08:00
bunnie
8b7912fb34
add some targeted debug; handle advisories before swapper registered
...
for now, we just count how mayn pages we missed an advisory on,
those all effectively are "wired". If we're fast enough on registering,
it turns out we actually miss nothing.
2024-03-23 11:59:31 +08:00
bunnie
233bb63878
add debug-swap targeted debug config
2024-03-23 11:59:31 +08:00
bunnie
10c4ab80c8
make the swapper register immediately
...
this means we miss fewer advisories at boot
2024-03-23 11:59:31 +08:00
bunnie
ed5dd7e538
fix argument order bug
...
just a dumb typo
2024-03-23 11:59:31 +08:00
bunnie
ced6dd9e63
fix bug in create-image invocation
...
its arguments require the 0x decorator to define hex,
whereas arguments to xtask don't. A little confusing, but
only if you actually ever call create-image -- which nobody
does, to a first order.
2024-03-23 11:59:31 +08:00
bunnie
fdbdea5ab0
add swap tag to image creation
2024-03-23 11:59:31 +08:00
bunnie
38f0002294
partial progress on create-image
...
create-image can now genereate inis sections
still needs to kick out a `swap` argument for the bootloader
so it knows where swap should go.
2024-03-23 11:59:31 +08:00
bunnie
66779dd479
add swap specifiers to xtask
2024-03-23 11:59:31 +08:00
bunnie
ff241b117b
fix ordering of processes so that the swapper is PID 2
2024-03-23 11:59:31 +08:00
bunnie
71b3244198
add "swap" to the arguments for syntax checking
...
doesn't hurt, makes it easier to debug things
2024-03-23 11:59:31 +08:00
bunnie
9ddf537115
setup argument unpacking in the swapper
2024-03-23 11:59:31 +08:00
bunnie
803ce1a847
move allocadvice to new home
2024-03-23 11:59:31 +08:00
bunnie
b62a639031
move AllocAdvice record to externally visible xous-rs definitions
...
this structure moves between swapper and userland.
2024-03-23 11:59:31 +08:00
bunnie
a2e6a75b2d
add test code to lock and top level workspace
2024-03-23 11:59:31 +08:00
bunnie
858e2c8eb3
add swapper test code to the swapper test image
2024-03-23 11:59:31 +08:00
bunnie
21338321cd
add a skeleton for swapper test code
2024-03-23 11:59:31 +08:00
bunnie
c2084af2ad
make sure the swapper feature is turned on
2024-03-23 11:59:31 +08:00
bunnie
af856124a0
pass kernel dependency to xous-rs
2024-03-23 11:59:31 +08:00
bunnie
025e39913b
implement retrieval from swap and allocation advisories
2024-03-23 11:59:31 +08:00
bunnie
4eefbd88bc
cleanup warning that crept into the code
2024-03-23 11:59:31 +08:00
bunnie
168e3454f6
handle free advisories
2024-03-23 11:59:31 +08:00
bunnie
28b415cb27
handle swapped pages and allocation advisories
2024-03-23 11:59:31 +08:00
bunnie
14364e09c6
ensure compliance with unsafe conditions on exit_blocking_call()
2024-03-23 11:59:31 +08:00