bunnie
5add97db90
Merge remote-tracking branch 'eupn/xtask-simplify' into swap
2024-04-01 14:20:45 +08:00
bunnie
85d195854d
absorb a trailing change to lockfile from c25519 merge
...
sometimes these changes don't appear until after a build
2024-04-01 14:09:23 +08:00
bunnie
ec439a38d4
handle both cases in the irq return handler
...
differentiate between the case that we got here via
a page fault, or a syscall, and handle appropriately
2024-04-01 14:08:15 +08:00
bunnie
2f23225b9d
update API for advise alloc
2024-04-01 14:07:43 +08:00
bunnie
fa23a6f829
remove swap-specific patches now that we're patched at the syscall entry point
2024-04-01 14:07:14 +08:00
bunnie
5645a645e5
add handler for the syscall return case and unmap loop
...
There's two ways we can enter the swapper:
1. via an interrupt due to a page fault
2. via a syscall that generated a memory event (e.g. unmap)
This patch handles case (2) better and clarifies variable names
around that to make the code read better.
It also has logic to handle divergent looping through a large
unmap request.
2024-04-01 14:05:26 +08:00
bunnie
46525eff04
add separate handling for unmap syscall
...
The unmap syscall is a little bit tricky, because it can de-allocate
several pages at once, which can trigger an advisory de-allocate
message to the swapper in the middle of the loop. The entire structure
has to be re-written to handle this case, so we patch this right at
the top level syscall point and handle it entirely with custom
logic in the swapper.
2024-04-01 14:03:43 +08:00
bunnie
29b988604b
Merge pull request #521 from eupn/xtask-simplify
...
xtask: simplify & cleanup
2024-03-31 19:35:52 -07:00
eupn
92d66d5a63
xtask: fix clippy
2024-03-31 21:40:41 +04:00
eupn
495c342ab0
xtask: rename BuildStream's to_str to as_str
...
This naming more closely reflects the ownership semantic
2024-03-31 21:40:18 +04:00
eupn
e7da909372
xtask: rustfmt
2024-03-31 21:36:08 +04:00
eupn
ec31a592ab
xtask: fix clippy
2024-03-31 21:36:01 +04:00
eupn
09a6ea2823
xtask: fix comment typos
2024-03-31 21:35:51 +04:00
eupn
12ef383353
xtask: simplify lists
2024-03-31 21:35:35 +04:00
eupn
698cc497c9
xtask: elide lifetimes
2024-03-31 21:35:07 +04:00
bunnie
5f1e8618f0
more telemetry on xous-swapper
2024-03-31 17:48:54 +08:00
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
ecefa68531
Merge pull request #520 from betrusted-io/keymap-check
...
check keymap on every call to "type" over USB
2024-03-30 17:46:55 -07:00
bunnie
585f21c9aa
check keymap on every call to "type" over USB
...
this allows us to type into hosts that have different keymappings
from each other without requiring a reboot.
2024-03-31 08:42:41 +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