|
| From: | Paolo Bonzini |
| Subject: | Re: [RFC v19 13/15] i386: slit svm_helper into softmmu and stub-only user |
| Date: | Tue, 16 Feb 2021 11:58:38 +0100 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 16/02/21 11:52, Claudio Fontana wrote:
I noticed also a call to cpu_load_efer() in gdbstub.c,
case IDX_CTL_EFER_REG:
if (env->hflags & HF_CS64_MASK) {
cpu_load_efer(env, ldq_p(mem_buf));
return 8;
}
cpu_load_efer(env, ldl_p(mem_buf));
return 4;
}
Should this somehow restricted for user-mode, as it has the potential to set
HF_SVME ?
Yeah, it should. Likewise for CR0/CR2/CR3/TPR. Nice catch! Paolo
| [Prev in Thread] | Current Thread | [Next in Thread] |