Re: [PATCH] kvm: Fix crash by initializing kvm_state early

2023-07-31 Thread Gavin Shan
On 7/31/23 22:39, Peter Maydell wrote: On Mon, 31 Jul 2023 at 08:18, David Hildenbrand wrote: On 31.07.23 01:48, Gavin Shan wrote: Runs into core dump on arm64 and the backtrace extracted from the core dump is shown as below. It's caused by accessing @kvm_state which isn't initialized at t

Re: [PATCH] kvm: Fix crash by initializing kvm_state early

2023-07-31 Thread Peter Maydell
On Mon, 31 Jul 2023 at 08:18, David Hildenbrand wrote: > > On 31.07.23 01:48, Gavin Shan wrote: > > Runs into core dump on arm64 and the backtrace extracted from the > > core dump is shown as below. It's caused by accessing @kvm_state which > > isn't initialized at that point due to commit 176d073

Re: [PATCH] kvm: Fix crash by initializing kvm_state early

2023-07-31 Thread David Hildenbrand
On 31.07.23 01:48, Gavin Shan wrote: Runs into core dump on arm64 and the backtrace extracted from the core dump is shown as below. It's caused by accessing @kvm_state which isn't initialized at that point due to commit 176d073029 ("hw/arm/virt: Use machine_memory_devices_init()"), where the mach

[PATCH] kvm: Fix crash by initializing kvm_state early

2023-07-30 Thread Gavin Shan
Runs into core dump on arm64 and the backtrace extracted from the core dump is shown as below. It's caused by accessing @kvm_state which isn't initialized at that point due to commit 176d073029 ("hw/arm/virt: Use machine_memory_devices_init()"), where the machine's memory region is added ealier tha