All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel]  vt-x support for qemu
@ 2016-10-10 16:18 Anand J
  2016-10-11 18:41 ` Anand J
  0 siblings, 1 reply; 8+ messages in thread
From: Anand J @ 2016-10-10 16:18 UTC (permalink / raw)
  To: qemu-devel

Hi,

Does qemu provide support for hardware assisted virtualization now? If not,
is anybody working on it?

Thanks,
Anand

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] vt-x support for qemu
  2016-10-10 16:18 [Qemu-devel] vt-x support for qemu Anand J
@ 2016-10-11 18:41 ` Anand J
  2016-10-12 10:57   ` Paolo Bonzini
  0 siblings, 1 reply; 8+ messages in thread
From: Anand J @ 2016-10-11 18:41 UTC (permalink / raw)
  To: qemu-devel

I want to run KVM on qemu. For this qemu must provide vt-x/amd-v
instruction support in the software mode.
I was planning to try to add this feature in qemu. If somebody is already
working on it please reply.

Thanks,
Anand

On Mon, Oct 10, 2016 at 9:48 PM, Anand J <anand.indukala@gmail.com> wrote:

> Hi,
>
> Does qemu provide support for hardware assisted virtualization now? If
> not, is anybody working on it?
>
> Thanks,
> Anand
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] vt-x support for qemu
  2016-10-11 18:41 ` Anand J
@ 2016-10-12 10:57   ` Paolo Bonzini
  2016-10-12 11:34     ` Anand J
  0 siblings, 1 reply; 8+ messages in thread
From: Paolo Bonzini @ 2016-10-12 10:57 UTC (permalink / raw)
  To: Anand J, qemu-devel



On 11/10/2016 20:41, Anand J wrote:
> I want to run KVM on qemu. For this qemu must provide vt-x/amd-v
> instruction support in the software mode.
> I was planning to try to add this feature in qemu. If somebody is already
> working on it please reply.

QEMU provides AMD-V support.

Paolo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] vt-x support for qemu
  2016-10-12 10:57   ` Paolo Bonzini
@ 2016-10-12 11:34     ` Anand J
  2016-10-12 11:39       ` Paolo Bonzini
  0 siblings, 1 reply; 8+ messages in thread
From: Anand J @ 2016-10-12 11:34 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

Thanks for replying. Can you please tell me where should I start looking at
the code
in order to understand the implementation?

Thanks,
Anand

On Wed, Oct 12, 2016 at 4:27 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:

>
>
> On 11/10/2016 20:41, Anand J wrote:
> > I want to run KVM on qemu. For this qemu must provide vt-x/amd-v
> > instruction support in the software mode.
> > I was planning to try to add this feature in qemu. If somebody is already
> > working on it please reply.
>
> QEMU provides AMD-V support.
>
> Paolo
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] vt-x support for qemu
  2016-10-12 11:34     ` Anand J
@ 2016-10-12 11:39       ` Paolo Bonzini
  2016-10-12 12:03         ` Anand J
  0 siblings, 1 reply; 8+ messages in thread
From: Paolo Bonzini @ 2016-10-12 11:39 UTC (permalink / raw)
  To: Anand J; +Cc: qemu-devel



On 12/10/2016 13:34, Anand J wrote:
> Thanks for replying. Can you please tell me where should I start looking
> at the code in order to understand the implementation?

My immediate answer is that if you cannot find it, you'll have a hard
time understanding the implementation.  But anyway it's in
target-i386/svm_helper.c and target-i386/translate.c (search for svm in
the latter file).

Paolo

> On Wed, Oct 12, 2016 at 4:27 PM, Paolo Bonzini <pbonzini@redhat.com
> <mailto:pbonzini@redhat.com>> wrote:
> 
> 
> 
>     On 11/10/2016 20:41, Anand J wrote:
>     > I want to run KVM on qemu. For this qemu must provide vt-x/amd-v
>     > instruction support in the software mode.
>     > I was planning to try to add this feature in qemu. If somebody is already
>     > working on it please reply.
> 
>     QEMU provides AMD-V support.
> 
>     Paolo
> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] vt-x support for qemu
  2016-10-12 11:39       ` Paolo Bonzini
@ 2016-10-12 12:03         ` Anand J
  2016-10-12 12:05           ` Paolo Bonzini
  0 siblings, 1 reply; 8+ messages in thread
From: Anand J @ 2016-10-12 12:03 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

I'm doing this as part of my academic project on virtualization. I'm ready
to
spend some time on this in order to understand the entire code base.

Also I'm assuming that qemu does not have support for vt-x yet.

Thanks,
Anand

On Wed, Oct 12, 2016 at 5:09 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:

>
>
> On 12/10/2016 13:34, Anand J wrote:
> > Thanks for replying. Can you please tell me where should I start looking
> > at the code in order to understand the implementation?
>
> My immediate answer is that if you cannot find it, you'll have a hard
> time understanding the implementation.  But anyway it's in
> target-i386/svm_helper.c and target-i386/translate.c (search for svm in
> the latter file).
>
> Paolo
>
> > On Wed, Oct 12, 2016 at 4:27 PM, Paolo Bonzini <pbonzini@redhat.com
> > <mailto:pbonzini@redhat.com>> wrote:
> >
> >
> >
> >     On 11/10/2016 20:41, Anand J wrote:
> >     > I want to run KVM on qemu. For this qemu must provide vt-x/amd-v
> >     > instruction support in the software mode.
> >     > I was planning to try to add this feature in qemu. If somebody is
> already
> >     > working on it please reply.
> >
> >     QEMU provides AMD-V support.
> >
> >     Paolo
> >
> >
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] vt-x support for qemu
  2016-10-12 12:03         ` Anand J
@ 2016-10-12 12:05           ` Paolo Bonzini
  2016-10-24 21:02             ` Anand J
  0 siblings, 1 reply; 8+ messages in thread
From: Paolo Bonzini @ 2016-10-12 12:05 UTC (permalink / raw)
  To: Anand J; +Cc: qemu-devel



On 12/10/2016 14:03, Anand J wrote:
> I'm doing this as part of my academic project on virtualization. I'm
> ready to 
> spend some time on this in order to understand the entire code base.
> 
> Also I'm assuming that qemu does not have support for vt-x yet.

No, it doesn't.

Paolo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] vt-x support for qemu
  2016-10-12 12:05           ` Paolo Bonzini
@ 2016-10-24 21:02             ` Anand J
  0 siblings, 0 replies; 8+ messages in thread
From: Anand J @ 2016-10-24 21:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini

Hi,

I have the following setup. I'm running qemu in software mode, installed
KVM inside qemu. And on top of that I need to run qemu again but with kvm
enabled. But I'm getting the following error when I try to do that.
Can somebody please help me with this?

KVM internal error. Suberror: 1
emulation failure
EAX=ffffffff EBX=4000004b ECX=00000000 EDX=000f5ea0
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00006fd0
EIP=40000000 EFL=00000086 [--S--P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0010 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
CS =0008 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
SS =0010 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
DS =0010 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
FS =0010 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
GS =0010 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
GDT=     000f7180 00000037
IDT=     000f71be 00000000
CR0=00000011 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000
DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00

Thanks,
Anand

On Wed, Oct 12, 2016 at 5:35 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:

>
>
> On 12/10/2016 14:03, Anand J wrote:
> > I'm doing this as part of my academic project on virtualization. I'm
> > ready to
> > spend some time on this in order to understand the entire code base.
> >
> > Also I'm assuming that qemu does not have support for vt-x yet.
>
> No, it doesn't.
>
> Paolo
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-10-24 21:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-10 16:18 [Qemu-devel] vt-x support for qemu Anand J
2016-10-11 18:41 ` Anand J
2016-10-12 10:57   ` Paolo Bonzini
2016-10-12 11:34     ` Anand J
2016-10-12 11:39       ` Paolo Bonzini
2016-10-12 12:03         ` Anand J
2016-10-12 12:05           ` Paolo Bonzini
2016-10-24 21:02             ` Anand J

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.