* [Qemu-devel] vmx support for qemu
@ 2016-10-26 12:16 poletaev
0 siblings, 0 replies; 2+ messages in thread
From: poletaev @ 2016-10-26 12:16 UTC (permalink / raw)
To: qemu-devel; +Cc: Pavel.Dovgaluk
Hello. I am trying to make realization of vmx for qemu.
For now it can:
- decode vmx instructions, vmx determination and vmx MSRs reading is
supported
- handle interrupts, exceptions, vm exits due to cr 0/4 exits, cr shadowing
is supported
- run bios POST and some amount of guest code in VirtualBox (tested on 5+
version). Current problem here is a strange wish of hypervisor to change
processor mode in vmx non-root to vm86 and find ill_op there. I have no
ideas, why VirtualBox wants it (may be someone knows?).
- configure guest in kvm, but guest can't run due to #PF which kvm can't
handle right on my realization. Details: when kvm configures guest and
enters in it, #PF with 0xfe05b address happens. Kvm goes to handle #PF.
kvm_mmu_page_fault goes to nonpaging_page_fault, which don't find page in
cache and calls nonpaging_map. nonpaging_map exits after critical section
before out_unlock label. For me reaction looks normal, but I didn't dig
deeper. After #PF handling kvm enters to guest again and falls to kvm again
with #PF on 0xfe05b. This situation repeats infinitely.
If somebody have an interest in subject, he can find sources here
https://github.com/ispras/qemu.git , branch vmx.
Best regards,
Dmitry Poletaev.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] vmx support for qemu
[not found] <5810a75b.6c27c80a.a1cb1.f340SMTPIN_ADDED_BROKEN@mx.google.com>
@ 2016-11-04 12:46 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2016-11-04 12:46 UTC (permalink / raw)
To: poletaev; +Cc: qemu-devel, Pavel.Dovgaluk
[-- Attachment #1: Type: text/plain, Size: 1551 bytes --]
On Wed, Oct 26, 2016 at 03:16:25PM +0300, poletaev wrote:
> Hello. I am trying to make realization of vmx for qemu.
>
> For now it can:
>
> - decode vmx instructions, vmx determination and vmx MSRs reading is
> supported
>
> - handle interrupts, exceptions, vm exits due to cr 0/4 exits, cr shadowing
> is supported
>
> - run bios POST and some amount of guest code in VirtualBox (tested on 5+
> version). Current problem here is a strange wish of hypervisor to change
> processor mode in vmx non-root to vm86 and find ill_op there. I have no
> ideas, why VirtualBox wants it (may be someone knows?).
>
> - configure guest in kvm, but guest can't run due to #PF which kvm can't
> handle right on my realization. Details: when kvm configures guest and
> enters in it, #PF with 0xfe05b address happens. Kvm goes to handle #PF.
> kvm_mmu_page_fault goes to nonpaging_page_fault, which don't find page in
> cache and calls nonpaging_map. nonpaging_map exits after critical section
> before out_unlock label. For me reaction looks normal, but I didn't dig
> deeper. After #PF handling kvm enters to guest again and falls to kvm again
> with #PF on 0xfe05b. This situation repeats infinitely.
>
>
>
> If somebody have an interest in subject, he can find sources here
> https://github.com/ispras/qemu.git , branch vmx.
If you want more attention I suggest sending an RFC patch series to
qemu-devel@nongnu.org.
Guidelines for submitting patches are here:
http://qemu-project.org/Contribute/SubmitAPatch
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-04 12:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-26 12:16 [Qemu-devel] vmx support for qemu poletaev
[not found] <5810a75b.6c27c80a.a1cb1.f340SMTPIN_ADDED_BROKEN@mx.google.com>
2016-11-04 12:46 ` Stefan Hajnoczi
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).