1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
other: 0.808
semantic: 0.760
device: 0.746
performance: 0.654
network: 0.613
debug: 0.572
graphic: 0.549
socket: 0.543
permissions: 0.503
files: 0.494
vnc: 0.451
boot: 0.386
PID: 0.362
KVM: 0.237
ARM: HCR.TVM traps are not implemented
On AARCH64, setting HCR.TVM to 1 is supposed to trap all writes to CTLR_EL1, TTBR0_EL1, TTBR1_EL1, TCR_EL1, ESR_EL1, FAR_EL1, AFSR0_EL1, AFSR1_EL1, MAIR_EL1, AMAIR_EL1, and CONTEXTIDR_EL1. However, it currently has no effect (QEMU emulator version 4.1.1).
It is also likely that TRVM will not trap, but, I didn't verify this.
Yes to both.
Patch posted:
https://lists.nongnu.org/archive/html/qemu-devel/2020-02/msg04401.html
If you could help testing, that would be appreciated.
Thank you for the patch! I am happy to test this for you. I will apply the patch/compile/test and get back to you.
I tested in AArch64 mode and it worked for me. Looking at the patch, we might be missing trapping for "TTBCR"in AA32 though.
Oops. Thanks for the review. Posted v2 with ttbcr included.
Thank you! I also tested AArch32 and the code works. Ship it!
Fixed here:
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=84929218512c
|