On Tue, 18 Feb 2020 at 13:14, Laurent Vivier <lviv...@redhat.com> wrote: > There is one in target/i386/hvf/vmx.h: macvm_set_cr0() you didn't change.
It turns out that "spatch --dir ." only looks at .c files, and you need to add --include-headers to get it to look at .h files too. The only extra change is this one: diff --git a/target/i386/hvf/vmx.h b/target/i386/hvf/vmx.h index eb8894cd589..c245dc6d5bb 100644 --- a/target/i386/hvf/vmx.h +++ b/target/i386/hvf/vmx.h @@ -125,10 +125,9 @@ static inline void macvm_set_cr0(hv_vcpuid_t vcpu, uint64_t cr0) if ((cr0 & CR0_PG) && (rvmcs(vcpu, VMCS_GUEST_CR4) & CR4_PAE) && !(efer & MSR_EFER_LME)) { - address_space_rw(&address_space_memory, - rvmcs(vcpu, VMCS_GUEST_CR3) & ~0x1f, - MEMTXATTRS_UNSPECIFIED, - (uint8_t *)pdpte, 32, 0); + address_space_read(&address_space_memory, + rvmcs(vcpu, VMCS_GUEST_CR3) & ~0x1f, + MEMTXATTRS_UNSPECIFIED, (uint8_t *)pdpte, 32); /* Only set PDPTE when appropriate. */ for (i = 0; i < 4; i++) { wvmcs(vcpu, VMCS_GUEST_PDPTE0 + i * 2, pdpte[i]); which I propose to squash in, together with the fixes to use the right filename in the commit message and comment. thanks -- PMM