mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Petr Vandrovec <petr@vmware.com>
Cc: nigel@nigel.suspend2.net, Arjan van de Ven <arjan@infradead.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: VMware, x86_64 and 2.6.21.
Date: Fri, 04 May 2007 05:40:44 -0600	[thread overview]
Message-ID: <m1slacu88z.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <46385A18.30804@vmware.com> (Petr Vandrovec's message of "Wed, 02 May 2007 02:30:00 -0700")

Petr Vandrovec <petr@vmware.com> writes:

> Nigel Cunningham wrote:
>> Hi Arjan.
>>
>> On Tue, 2007-05-01 at 07:57 -0700, Arjan van de Ven wrote:
>>> On Tue, 2007-05-01 at 15:42 +1000, Nigel Cunningham wrote:
>>>> Hi.
>>>>
>>>> Does anyone have VMware working on x86_64 with 2.6.21? It's working fine
>>>> for me with 2.6.20, but freezes the whole computer with 2.6.21. Before I
>>>> start a git-bisect, I thought I might ask if anyone knew of some
>>>> compilation option I might have missed.
>>>
>>> if you want to ask questions about proprietary kernel stuff you're
>>> better off asking the vendor directly, not lkml
>>
>> I did, but given that it the failure only appeared with a change of
>> vanilla kernel version, I didn't think it was out of place to ask here
>> too.
>
> I thought I already talked about that on VMware's forums, but apparently I just
> discussed it in email only.  Culprit (if I can say that) is
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=610142927b5bc149da92b03c7ab08b8b5f205b74
>
> It changed interrupt layout - before that change IRQ 0-15 were using vectors
> 0x20-0x2F, after change they use interrupts 0x30-0x3F.  Which has unfortunate
> effect that when hardware IRQ 8 arrives while VM is running, vmm believes that
> it internally used 'INT 0x38' to call some hypervisor service - and (1) hardware
> interrupt is never acknowledged, and (2) hypervisor issues random operation
> depending on contents of registers at the time interrupt arrived.  Both are
> quite bad, and usual result is that VMware panics, and while writing core dump
> kernel hangs as IOAPIC believes that there is IRQ 8 in service, and so it does
> not ever deliver IRQs 14/15 for legacy IDE harddisks (which are at same level).
>
> One of possible fixes (if you need to run older products than VMware Workstation
> 6 on 64bit 2.6.21+) is replacing
>
> #define IRQ0_VECTOR            FIRST_EXTERNAL_VECTOR + 0x10
>
> with
>
> #define IRQ0_VECTOR            FIRST_EXTERNAL_VECTOR + 0x08

Nope.  That will break irq migration don't even think about it.

> Then IRQ 0x38 will be skipped.  Other option is move only IRQ8_VECTOR somewhere
> else (into 0x21-0x2F range).
> 							Petr Vandrovec
>
> P.S.: Well, and obviously this has nothing to do with vmmon...

I don't even want to think about how a kernel module gets far enough
into the kernel to be affected by our vector layout.  These are internal
implementation details, without anything exported to modules.

Can I please see the source of the code in vmware that is doing this?

Eric

  reply	other threads:[~2007-05-04 11:41 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-01  5:42 Nigel Cunningham
2007-05-01  6:13 ` Jeff Chua
2007-05-01  6:33   ` Nigel Cunningham
2007-05-01 11:09   ` Jan Engelhardt
2007-05-01 12:51     ` Jeff Chua
2007-05-01  7:24 ` Michael Gerdau
2007-05-01  7:36   ` Nigel Cunningham
2007-05-01 11:10     ` Jan Engelhardt
2007-05-01 11:54       ` Nigel Cunningham
2007-05-01 13:46         ` Mark Lord
2007-05-01 15:09           ` Nigel Cunningham
2007-05-01 14:57 ` Arjan van de Ven
2007-05-01 15:14   ` Nigel Cunningham
2007-05-02  9:30     ` Petr Vandrovec
2007-05-04 11:40       ` Eric W. Biederman [this message]
2007-05-04 15:08         ` Zachary Amsden
2007-05-04 20:14           ` Eric W. Biederman
2007-05-04 21:04             ` Zachary Amsden
2007-05-05  9:56     ` Christoph Hellwig
2007-05-05 18:06       ` John Anthony Kazos Jr.
2007-05-06  7:16       ` Valdis.Kletnieks
2007-05-06 11:08         ` Christoph Hellwig
2007-05-01  6:50 Marcos Pinto
2007-05-01  7:06 ` Nigel Cunningham
2007-05-01 22:38 ` Zachary Amsden

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=m1slacu88z.fsf@ebiederm.dsl.xmission.com \
    --to=ebiederm@xmission.com \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nigel@nigel.suspend2.net \
    --cc=petr@vmware.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

all inboxes | Powered by JetHome®