Re: [PATCH] qemu: Starting a domain with custom model andallowed-fallback failed when host lacks some CPU features

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jirka,

Thanks for your reviewing. But in the condition I described, libvirt has no chance to translate into a different model, because it has failed in the virCPUCompare before translate and the start of the domain will report the error, it that correct?
For example, a host lacks "monitor" feature, which means that we can't see "monitor" flag when we run "cat /proc/cpuinfo", it will report error when we try to start the domain with core2duo model:
"error: the CPU is incompatible with host CPU: Host CPU does not provide
required features: monitor"


Yi Wang
Original

Sender:JiriDenemark
To:WangYi10129963;
Cc:libvir-list@xxxxxxxxxx;LiuJianJun10033482;
Date:2017-06-07 01:56:02
Subject:Re: [libvirt] [PATCH] qemu: Starting a domain with custom model andallowed-fallback failed when host lacks some CPU features

On Tue, Jun 06, 2017 at 12:23:01 -0400, Yi Wang wrote:
> An attemp to start a domain requesting a custom CPU model, core2duo, for
> example, will fail if some feature that the model needs doesn't exist in that
> host, even though fallback attibute is set allow:
> "error: the CPU is incompatible with host CPU: Host CPU does not provide
> required features: monitor"
> Of course we can start that domain through forbidding that feature, but
> that may not be flexible.

NACK, it works exactly as designed. The fallback attribute would make a
difference only if core2duo CPU model was not supported by QEMU, then
libvirt would translate it into a different supported one.

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux