public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Eric Lacombe <goretux@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: [x86] - technical questions about HV implementation on Intel VT
Date: Mon, 20 Apr 2009 21:22:21 +0300	[thread overview]
Message-ID: <49ECBD5D.4080205@redhat.com> (raw)
In-Reply-To: <200904201953.53815.goretux@gmail.com>

Eric Lacombe wrote:
> Hi,
>
> I reviewed my code (modify some things and add missing features) and made more 
> tests, but I'm stuck with the same problem.
> Nonetheless, all the tests I've done seem to freeze my machine when files are 
> used.
>
> When I try the commands "echo", "pwd" in the console (X is not started), the 
> machine behaves nicely. When I try completion (with double-tab) on a command, 
> it also works. But, when I try for instance "more help.c", the machine 
> freezes, likewise when I try "more hel"+double-tab.
>   

echo and pwd are part of bash, so they are probably in memory.  I guess 
once you go to disk things fail.

Try to boot the entire OS from initramfs (and keep it there).

> I really would appreciate some help on this.
>   

This is much to complicated for drive-by debugging.

> Please, could you tell me what I could check (because I already checked a lot 
> of things and can't figure out what happens)? I would also give you all the 
> information you need.
>
> (Recall: When loaded, my module use VT-x to go on vmx root operation, then it 
> creates a vmcs in order to execute the OS inside a VM.)
>   

I imagine you have interrupts working properly?  Does 'watch -d cat 
/proc/interrupts' give the expected results (run it before you enter vmx 
to load it into cache)?

Are you virtualizing memory, or does the guest manipulate page tables 
directly?

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


  reply	other threads:[~2009-04-20 18:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200903241822.11529.goretux@gmail.com>
     [not found] ` <200904071926.30643.goretux@gmail.com>
2009-04-14 12:24   ` [x86] - technical questions about HV implementation on Intel VT Eric Lacombe
2009-04-20 17:53     ` Eric Lacombe
2009-04-20 18:22       ` Avi Kivity [this message]
2009-04-21 11:16         ` Eric Lacombe
2009-04-29 14:50           ` Eric Lacombe
2009-04-29 16:13             ` Eric Lacombe

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=49ECBD5D.4080205@redhat.com \
    --to=avi@redhat.com \
    --cc=goretux@gmail.com \
    --cc=kvm@vger.kernel.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