On Fri, Nov 20, 2020 at 08:06:08AM +0100, daggs wrote:
Greetings Martin,
> Sent: Thursday, November 19, 2020 at 11:23 PM
> From: "Martin Kletzander" <mkletzan(a)redhat.com>
> To: "daggs" <daggs(a)gmx.com>
> Cc: "libvirt-usersredhat.com" <libvirt-users(a)redhat.com>
> Subject: Re: image works in native but not in vm when cpu
mode='host-passthrough' is set
>
> On Tue, Nov 17, 2020 at 11:32:29AM +0100, daggs wrote:
> ...
> Not sure, but there might be some flags that are not passed through even with
> host-passthrough. Virtualisation ones are definitely one of those that need to
> be enabled on top of host-passthrough. The easiest thing to check that I can
> think of would be booting some live distro and checking the flags in
> /proc/cpuinfo and how are they different from your host.
>
I don't need livecd, I can diff both native and vm, see
https://dpaste.com/ARETBEPCL
from what I can see, the vm is missing these flags: dts acpi tm pbe art pebs bts
nonstop_tsc aperfmperf dtes64 monitor ds_cpl est tm2 sdbg xtpr pdcm epb intel_pt dtherm
pln pts hwp hwp_notify hwp_act_window hwp_epp
and have these flags: tsc_known_freq hypervisor umip arch_capabilities
beside the acpi flag which I found strange to be messing, I can't think of any other
flag which might be needed.
I'm sorry to say that, but nobody else here provides expertise, maybe extracting
the qemu command-lines from the logs and asking on qemu-users might be the best
next step. Sorry I cannot help you more as I do not see anything immediately
obvious here.
Martin
Dagg.