From: Kashyap Chamarthy <kchamart@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
qemu-devel@nongnu.org, ehabkost@redhat.com
Subject: Re: [PATCH] target/i386: add VMX features to named CPU models
Date: Wed, 20 Nov 2019 19:16:05 +0100 [thread overview]
Message-ID: <20191120181605.GA13912@paraplu> (raw)
In-Reply-To: <7e1b3701-8c5a-409c-8c8f-29cb673da3ac@redhat.com>
On Wed, Nov 20, 2019 at 06:57:20PM +0100, Paolo Bonzini wrote:
> On 20/11/19 18:50, Daniel P. Berrangé wrote:
> > On Wed, Nov 20, 2019 at 06:37:53PM +0100, Paolo Bonzini wrote:
> >> This allows using "-cpu Haswell,+vmx", which we did not really want to
> >> support in QEMU but was produced by Libvirt when using the "host-model"
> >> CPU model.
> > Can you say what is currently broken ? If I launch my current QEMU (I have
> > 4.1.1 on Fedora 31):
> >
> > qemu-system-x86_64 -cpu Haswell,+vmx
> >
> > ... I don't get any reported errors.
> >
>
> KVM does not load in the guest, though?
Indeed it doesn't:
$> ./min-qemu.sh
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
[...]
cirros login: cirros
Password:
[cirros] $ cat /proc/cpuinfo | grep vmx
[cirros] $ echo $?
1
Where `cat min-qemu.sh` is:
------------------------------------------------------------------------
#!/usr/bin/env bash
args=(
-display none
-cpu Haswell,+vmx
-no-user-config
-machine q35,accel=kvm
-nodefaults
-m 2048
-serial stdio
-drive file=/export/vm1.qcow2,format=qcow2,if=virtio
)
~/build/qemu/x86_64-softmmu/qemu-system-x86_64 "${args[@]}"
------------------------------------------------------------------------
[...]
--
/kashyap
next prev parent reply other threads:[~2019-11-20 18:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-20 17:37 [PATCH] target/i386: add VMX features to named CPU models Paolo Bonzini
2019-11-20 17:50 ` Daniel P. Berrangé
2019-11-20 17:57 ` Paolo Bonzini
2019-11-20 18:02 ` Daniel P. Berrangé
2019-11-20 18:16 ` Kashyap Chamarthy [this message]
2019-11-20 18:45 ` Eduardo Habkost
2019-11-20 20:49 ` Paolo Bonzini
2019-11-20 21:15 ` Eduardo Habkost
2019-11-20 22:14 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191120181605.GA13912@paraplu \
--to=kchamart@redhat.com \
--cc=berrange@redhat.com \
--cc=ehabkost@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).