Bug #1751

DFBSD 2.7.2 - X86_64 Installation on KVM fails

Added by ahuete.devel about 4 years ago. Updated almost 2 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hi,

During the boot process of the livecd (latest x86_64 ISO from
26-April-2010) on KVM, I get the following:
http://imgpaste.com/i/gzpyc.png

In sys/platform/vkernel64/x86_64/trap.c line 639 there's a comment:

"Invalid segment selectors and out of bounds %rip's and %rsp's can be
set up in user mode. This causes a fault in kernel mode when the
kernel tries to return to user mode. We want to get this fault so
that we can fix the problem here and not have to check all the
selectors and pointers when the user changes them."

Cheers,
Antonio Huete


Related issues

Related to Bug #2089: Fatal trap 9: GPF in kernel mode Closed

History

#1 Updated by justin about 4 years ago

On Tue, April 27, 2010 5:26 am, Antonio Huete Jimenez wrote:
> Hi,
>
> During the boot process of the livecd (latest x86_64 ISO from
> 26-April-2010) on KVM, I get the following:
> http://imgpaste.com/i/gzpyc.png

I just saw someone else with a KVM crash and DragonFly:

http://rwmj.wordpress.com/2010/04/26/trying-out-the-bsds/

#2 Updated by ahuete.devel about 4 years ago

> I just saw someone else with a KVM crash and DragonFly:
>
> http://rwmj.wordpress.com/2010/04/26/trying-out-the-bsds/

Hi Justin,

I don't know how this guy is trying to run our i386, but it is
certainly working for i386. island.quantumachine.net is a VM on KVM
and Jan has done some test on DFBSD/i386 over KVM also. He shouldn't
be pressing a lot of keys in the loader prompt and also in that prompt
it is asking for the loader, not the kernel.

It is on x64 where I encounter this issue, right the same as he does
in that screenshot.

Nevertheless, thanks for the link :-)

Cheers,
Antonio Huete

#3 Updated by alexh about 4 years ago

Just FYI, he isn't running x86, he's running x86_64. See that %rbx?

#4 Updated by ahuete.devel about 4 years ago

Alex,

Yeah, indeed, I got confused by the PCBSD screenshots.

Cheers,
Antonio Huete

2010/4/27 Alex Hornung (via DragonFly issue tracker)
<>:
>
> Alex Hornung <> added the comment:
>
> Just FYI, he isn't running x86, he's running x86_64. See that %rbx?
>
> _____________________________________________________
> DragonFly issue tracker <>
> <http://bugs.dragonflybsd.org/issue1751>
> _____________________________________________________

#5 Updated by tuxillo about 4 years ago

Hi Dillon,

After adding the nop as you told me and building an ISO with it, here's the new
panic:

http://imgpaste.com/i/kssqi.jpeg

Cheers,
Antonio Huete

#6 Updated by tuxillo about 4 years ago

Hi,

I've tried several FBSD flavours with different issues.
FBSD 6.4 and above doesn't seem to have any issue, and 6.3 and below just fail
randomly, so I haven't been able to establish any relationship.

I keep searching ...

Cheers,
Antonio Huete

#7 Updated by dillon about 4 years ago

This could be related to the use of superpages to map portions of the
kernel on x86_64. Hardware KVM support has serious issues with
FreeBSD's dynamic superpage support and they have to turn it off to
run reliably, I wonder if the static superpages have the same problem.

-Matt

#8 Updated by tuxillo almost 4 years ago

Hi Matt,

So I guess if we could disable static superpages, we could make sure that's the
issue. But something tells me that it can't be done, at least in an easy way.

Thanks,
Antonio Huete

#9 Updated by tuxillo almost 2 years ago

  • Description updated (diff)
  • Status changed from New to Closed
  • Assignee deleted (0)

It can be handled in issue 2089. Closing this one.

Also available in: Atom PDF