akhilesh rawat
2017-Jan-27 08:18 UTC
Re: [libvirt-users] LibVirt query CPU Model support and restore operation
hello , thanks for comments . I tried now with force options for CPU flag which were not supported . Now the command with non fully supported CPU model gets executed , But i am surprised to see that still Guest cpu model is not changed and still same as host cpu model(SAndy Bridge) Why don't i see the model as HAswell now , could you please comment. Command used : virt-install --virt-type kvm --name controller-0 --cpu Haswell-noTSX,+fma,+movbe,+fsgsbase,+bmi1,+avx2,+smep,+bmi2,+erms,+invpcid --ram=8120 --vcpus=4,sockets=1 Linux process for KVM : 7479 1 37 10:13 ? 01:13:21 /usr/libexec/qemu-kvm -name controller-0 -S -machine pc-i440fx-rhel7.0.0,accel=kvm,usb=off *-cpu SandyBridge,*+fma,+pcid,+movbe,+fsgsbase,+bmi1,+avx2,+smep,+bmi2,+erms,+invpcid -m 8120 -realtime mlock=off -smp 4,sockets=1,cores=4,threads=1 cpu guest : processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel Xeon E312xx (Sandy Bridge) stepping : 1 microcode : 0x1 cpu MHz : 1994.450 cache size : 4096 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt bogomips : 3988.90 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: CPU Host : processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 45 model name : Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz stepping : 7 microcode : 0x710 cpu MHz : 1200.000 cache size : 15360 KB physical id : 0 siblings : 12 core id : 0 cpu cores : 6 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid xsaveopt bogomips : 3990.17 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: Thanks Aki On Wed, Jan 25, 2017 at 2:36 PM, Jiri Denemark <jdenemar@redhat.com> wrote:> On Tue, Jan 24, 2017 at 16:21:14 +0530, akhilesh rawat wrote: > > hi, > > > > yes we are talking about same host here. > > > > You could've just used -cpu host-model-only > > >> I dont want to host model ( it is working with host model) . > > > > AS KVM seems to allow support Haswell with native commands . Does this > mean > > in my case KVM is allowing software emulated cpu model. > > No, QEMU will just drop the features which are not supported on your > host. Although there are some rare exceptions, such as x2apic, which can > be emulated even with KVM. > > Anyway, starting QEMU directly should print several warnings about > features which are dropped. And when you start QEMU with > -cpu Haswell,enforce it should refuse to start. > > > Can libvirt allow software-emulated for non host model ? if yes how . > > You can bypass the libvirt check for specific features by setting the > feature policy to "force" (no idea if this can be done with > virt-install), but QEMU will still do the check itself and either drop > the features or refuse to start (with enforce) if they cannot be used on > the host. > > Jirka >
Martin Kletzander
2017-Jan-27 09:46 UTC
Re: [libvirt-users] LibVirt query CPU Model support and restore operation
On Fri, Jan 27, 2017 at 01:48:44PM +0530, akhilesh rawat wrote:>hello , > >thanks for comments . > >I tried now with force options for CPU flag which were not supported . Now >the command with non fully supported CPU model gets executed , But i am >surprised to see that still Guest cpu model is not changed and still same >as host cpu model(SAndy Bridge) > >Why don't i see the model as HAswell now , could you please comment. >That's because it's still missing some of the features. QEMU dropped them because it can't emulate all of them. That's what both me and Jiri told you before.
Jiri Denemark
2017-Jan-27 09:53 UTC
Re: [libvirt-users] LibVirt query CPU Model support and restore operation
On Fri, Jan 27, 2017 at 13:48:44 +0530, akhilesh rawat wrote:> hello , > > thanks for comments . > > I tried now with force options for CPU flag which were not supported . Now > the command with non fully supported CPU model gets executed , But i am > surprised to see that still Guest cpu model is not changed and still same > as host cpu model(SAndy Bridge) > > Why don't i see the model as HAswell now , could you please comment. > > Command used : > > virt-install --virt-type kvm --name controller-0 --cpu > Haswell-noTSX,+fma,+movbe,+fsgsbase,+bmi1,+avx2,+smep,+bmi2,+erms,+invpcid > --ram=8120 --vcpus=4,sockets=1 > > Linux process for KVM : > > 7479 1 37 10:13 ? 01:13:21 /usr/libexec/qemu-kvm -name > controller-0 -S -machine pc-i440fx-rhel7.0.0,accel=kvm,usb=off *-cpu > SandyBridge,*+fma,+pcid,+movbe,+fsgsbase,+bmi1,+avx2,+smep,+bmi2,+erms,+invpcid > -m 8120 -realtime mlock=off -smp 4,sockets=1,cores=4,threads=1Your qemu-kvm binary apparently doesn't know what Haswell-noTSX is and thus libvirt has to translate it to something QEMU understands. You can check supported CPU models with "/usr/libexec/qemu-kvm -cpu ?" (make sure the question mark is not expanded by the shell). Jirka
akhilesh rawat
2017-Jan-27 10:35 UTC
Re: [libvirt-users] LibVirt query CPU Model support and restore operation
hi , yes you were correct . Model should as per qemu-kvm binary. thanks . /usr/libexec/qemu-kvm -name compute-0 -S -machine pc-i440fx-rhel7.0.0,accel=kvm,usb=off -cpu Haswell,+rtm,+hle -m 61440 -realtime mlock=off This time KVM is invked with cpu model HAswell. Also from proc rocessor : 19 vendor_id : GenuineIntel cpu family : 6 model : 60 *model name : Intel Core Processor (Haswell)* stepping : 1 microcode : 0x1 cpu MHz : 1995.110 cache size : 4096 KB fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt Akhilesh On Fri, Jan 27, 2017 at 3:23 PM, Jiri Denemark <jdenemar@redhat.com> wrote:> On Fri, Jan 27, 2017 at 13:48:44 +0530, akhilesh rawat wrote: > > hello , > > > > thanks for comments . > > > > I tried now with force options for CPU flag which were not supported . > Now > > the command with non fully supported CPU model gets executed , But i am > > surprised to see that still Guest cpu model is not changed and still > same > > as host cpu model(SAndy Bridge) > > > > Why don't i see the model as HAswell now , could you please comment. > > > > Command used : > > > > virt-install --virt-type kvm --name controller-0 --cpu > > Haswell-noTSX,+fma,+movbe,+fsgsbase,+bmi1,+avx2,+smep,+ > bmi2,+erms,+invpcid > > --ram=8120 --vcpus=4,sockets=1 > > > > Linux process for KVM : > > > > 7479 1 37 10:13 ? 01:13:21 /usr/libexec/qemu-kvm -name > > controller-0 -S -machine pc-i440fx-rhel7.0.0,accel=kvm,usb=off *-cpu > > SandyBridge,*+fma,+pcid,+movbe,+fsgsbase,+bmi1,+avx2,+ > smep,+bmi2,+erms,+invpcid > > -m 8120 -realtime mlock=off -smp 4,sockets=1,cores=4,threads=1 > > Your qemu-kvm binary apparently doesn't know what Haswell-noTSX is and > thus libvirt has to translate it to something QEMU understands. You can > check supported CPU models with "/usr/libexec/qemu-kvm -cpu ?" (make > sure the question mark is not expanded by the shell). > > Jirka >
Maybe Matching Threads
- Re: LibVirt query CPU Model support and restore operation
- Re: Fwd: Haswell 4770 misidentified as Sandy Bridge
- Error doing PCI passthrough on CentOS 7.2
- Fwd: Haswell 4770 misidentified as Sandy Bridge
- Re: LibVirt query CPU Model support and restore operation