public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: jchua@fedex.com (Jeff Chua),
	linux-kernel@vger.kernel.org (Linux Kernel),
	sfr@canb.auug.org.au (Stephen Rothwell),
	skraw@ithnet.com
Subject: Re: 2.4.18-pre7 slow ... apm problem
Date: Tue, 29 Jan 2002 00:22:04 +0100	[thread overview]
Message-ID: <1039F7D26FF8@vcnet.vc.cvut.cz> (raw)

On 28 Jan 02 at 22:20, Alan Cox wrote:
> > Question to all: Would it be a good idea to de-idle the CPU
> > inside interrupt handlers?
> 
> If you call APM routines from inside APM routines weirdness occurs - so
> the answer is no. I'd say that unless this is shown to be occuring in
> non vmware stuff its up to vmware to handle the apm situation right

Hi,
  unfortunately, majordomo kicked me yesterday evening, so I had to
follow this discussion through web archives, and I have some problems
with understanding why problem happens...

  When vmmon switches out of the Linux to the virtual machine, it disables
all (APIC) NMI sources, disables IRQ on the CPU, completely replaces CPU 
context (GDT/IDT/...) and switches to VMM, which does not physically
access anything except main memory and things emulated inside VMM
(like accesses to VGA/SVGA framebuffers). When an IRQ arrives to virtual
machine, it disables all IRQs, restores Linux kernel contexts, reenables
NMI sources, and restarts IRQ from vmmon by using INT xx instruction. 
And everything this happens in process context (when VMM_RUN ioctl is
invoked).

  So this behavior should be completely transparent to Linux kernel,
it should just see VMware process as a HLT instruction executed in vmmon
module, which delays interrupt confirmation/delivery a bit. Only thing
which could cause troubles is SMI arrival - but SMI handler cannot notice
any difference (except that APIC IRQ sources delivered as a NMI to CPU
are disabled), as paging is turned off during SMI handler, and physical
memory contents is same under both vmware and Linux kernel.

  So I'm really puzzled.
                                                Best regards,
                                                    Petr Vandrovec
                                                    vandrove@vc.cvut.cz
                                                    
P.S.: I'm not trying to say that it is not VMware fault. It probably
is, as I saw same behavior on my old Pentium 120MHz notebook two years
ago - but as problem disappeared as it appeared...

             reply	other threads:[~2002-01-28 23:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-28 23:22 Petr Vandrovec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-01-29 18:53 2.4.18-pre7 slow ... apm problem Petr Vandrovec
2002-01-29 22:47 ` Stephan von Krawczynski
2002-01-30  0:44 ` Jeff Chua
2002-01-30  5:50   ` Stephen Rothwell
2002-01-30  9:27     ` Jeff Chua
2002-02-01 13:20     ` Jeff Chua
2002-01-28  0:15 Thomas Hood
2002-01-28  0:32 ` Alan Cox
2002-01-28  2:37   ` Thomas Hood
2002-01-28 10:14     ` Alan Cox
2002-01-28 11:25       ` Thomas Hood
2002-01-28 13:03         ` Stephan von Krawczynski
2002-01-28 13:18         ` Alan Cox
2002-01-28 16:19           ` Thomas Hood
2002-01-28  3:22   ` Thomas Hood
2002-01-28 20:11   ` Jeff Chua
2002-01-28 20:28     ` Thomas Hood
2002-01-28 22:20       ` Alan Cox
2002-01-29 12:36       ` Jeff Chua
2002-01-30  1:12         ` Thomas Hood
2002-01-30  9:22           ` Jeff Chua
2002-01-28 21:14     ` Thomas Hood
2002-01-28 21:17     ` Jeff Chua
2002-01-28 23:09     ` Stephan von Krawczynski
2002-01-29 13:01       ` Jeff Chua
2002-01-27 10:08 Jeff Chua

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=1039F7D26FF8@vcnet.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=jchua@fedex.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    --cc=skraw@ithnet.com \
    /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