Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-17 Thread Gabriel Garcia
On 16/11/2020 23:03, Juan Francisco Cantero Hurtado wrote: Try -cpu kvm64. Thanks, Juan - yup, works similar to the Opteron, but lacks one of the flags - not much difference. I believe Philip is right in the assessment that a) the CPU isn't patched with AMD errata in the first place; b) qemu

Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-16 Thread Juan Francisco Cantero Hurtado
On Sun, Nov 15, 2020 at 06:20:52PM +, Gabriel Garcia wrote: > Hi, > > I would like to run OpenBSD as stated on the subject - I have been able, > however, to run it successfully with "-cpu Opteron_G2-v1", but I would > rather use "-cpu host" instead. Also note that on an Intel host, OpenBSD >

Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-16 Thread Gabriel Garcia
On 16/11/2020 20:40, Philip Guenther wrote: Looks like qemu fails to behave like a real AMD CPU by failing to handle the wrmsr() for that errata. Also the kernel you're running it on is failing to apply the errata itself (because otherwise OpenBSD won't be trying to flip the bit itself). Go

Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-16 Thread Philip Guenther
On Sun, Nov 15, 2020 at 10:24 AM Gabriel Garcia wrote: > I would like to run OpenBSD as stated on the subject - I have been able, > however, to run it successfully with "-cpu Opteron_G2-v1", but I would > rather use "-cpu host" instead. Also note that on an Intel host, OpenBSD > appears to work

Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-16 Thread Gabriel Garcia
On 16/11/2020 04:49, Bodie wrote: Can you show what is in /proc/cpuinfo in Linux host and possibly even its dmesg? Thanks for trying to help - sure, here's /proc/cpuinfo: processor : 0 vendor_id : AuthenticAMD cpu family : 16 model : 6 model name : AMD

Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-15 Thread Bodie
On 15.11.2020 19:20, Gabriel Garcia wrote: Hi, I would like to run OpenBSD as stated on the subject - I have been able, however, to run it successfully with "-cpu Opteron_G2-v1", but I would rather use "-cpu host" instead. Also note that on an Intel host, OpenBSD appears to work successfully

Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-15 Thread Bryan Steele
On Sun, Nov 15, 2020 at 06:20:52PM +, Gabriel Garcia wrote: > Hi, > > I would like to run OpenBSD as stated on the subject - I have been able, > however, to run it successfully with "-cpu Opteron_G2-v1", but I would > rather use "-cpu host" instead. Also note that on an Intel host, OpenBSD >

Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-15 Thread Ottavio Caruso
On 15/11/2020 18:20, Gabriel Garcia wrote: Hi, I would like to run OpenBSD as stated on the subject - I have been able, however, to run it successfully with "-cpu Opteron_G2-v1", but I would rather use "-cpu host" instead. Also note that on an Intel host, OpenBSD appears to work successfully

Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-15 Thread Gabriel Garcia
On 15/11/2020 20:14, Ottavio Caruso wrote: (pay attention to "-kvmclock-stable-bit" otherwise it will crash into a ddb debug shell) Thank you very much for the idea; sadly, it didn't work, must be something else!

OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-15 Thread Gabriel Garcia
Hi, I would like to run OpenBSD as stated on the subject - I have been able, however, to run it successfully with "-cpu Opteron_G2-v1", but I would rather use "-cpu host" instead. Also note that on an Intel host, OpenBSD appears to work successfully on the same Linux base. qemu invocation