All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@amd.com>
To: Jun Koi <junkoi2004@gmail.com>
Cc: Alexander Graf <agraf@suse.de>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Re: SVM support in 0.12?
Date: Mon, 21 Dec 2009 12:37:21 +0100	[thread overview]
Message-ID: <4B2F5DF1.4000701@amd.com> (raw)
In-Reply-To: <4B2F4D63.2040801@amd.com>

Andre Przywara wrote:
> Jun Koi wrote:
>>>>>>> I am running latest Qemu 0.12-rc. My guest VM runs Linux kernel 
>>>>>>> 2.6.31.
>>>>>>>
>>>>>>> Because Qemu now supports SVM, I expect to see the SVM flag in
>>>>>>> /proc/cpuinfo, but that is not the case.
>>>>>>>
>>>>>>> So it seems SVM support is not enabled by default configuration??
>>>>>>>
>>>>>> My host and guest are both 32 bit Linux, if that matters.
>>>>>>
>>>>>> (And this is pure Qemu, without using KVM or KQemu)
>>>>> Kqemu actually works with svm emulation.
>>>>>
> ...
>>>> qemu -m 500 -cpu qemu32,+svm -cdrom ubuntu.iso
>>>>
>>>> I verified that /proc/cpuinfo has no svm flag. So SVM doesnt work on 
>>>> 32bit
>>>> host.
>>>>
>>>> I will try that with 64bit host to see how it goes.
>>> The host doesn't matter. You can easily run qemu-system-x86_64 on a 
>>> 32-bit
>>> host.
>>>
>>
>> I can confirm that SVM works well on x86-64 target, but fails on i386 
>> target.
> 
> The Linux kernel will only detect SVM if the machine is AMD (see 
> linux-2.6/arch/x86/include/asm/virtext.h:cpu_has_svm())
> So please try:
> $ qemu -m 500 -cpu qemu32,+svm,vendor=AuthenticAMD -cdrom ubuntu.iso
> (because the default vendor for qemu32 is Intel, for qemu64 AMD)

Should have checked this before the post ;-):
qemu32 has a xlevel of 0, so no AMD-defined CPUID leafs will be parsed.
Either fix this explicitly with xlevel=0xa or use athlon as your base 
CPU model:
$ qemu -m 500 -cpu athlon,+svm -cdrom ubuntu.iso

This made my Linux show the SVM flag.

Regards,
Andre.

-- 
Andre Przywara
AMD-OSRC (Dresden)
Tel: x29712

  reply	other threads:[~2009-12-21 11:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-18  2:37 [Qemu-devel] SVM support in 0.12? Jun Koi
2009-12-18  2:39 ` [Qemu-devel] " Jun Koi
2009-12-18 11:35   ` Alexander Graf
2009-12-18 16:52     ` Jun Koi
2009-12-18 17:34       ` Alexander Graf
2009-12-21 10:06         ` Jun Koi
2009-12-21 10:26           ` Andre Przywara
2009-12-21 11:37             ` Andre Przywara [this message]
2009-12-18 20:03     ` Jamie Lokier
2009-12-18 20:05       ` Alexander Graf
2009-12-18 11:44   ` 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=4B2F5DF1.4000701@amd.com \
    --to=andre.przywara@amd.com \
    --cc=agraf@suse.de \
    --cc=junkoi2004@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.