Kernel KVM virtualization development
 help / color / mirror / Atom feed
* kvm with OpenBSD 4.5
@ 2009-04-16  3:51 Dongsheng Song
  2009-04-16  3:59 ` Theo de Raadt
  2009-04-16  5:14 ` Brian Jackson
  0 siblings, 2 replies; 11+ messages in thread
From: Dongsheng Song @ 2009-04-16  3:51 UTC (permalink / raw)
  To: kvm, misc

Can any one run OpenBSD 4.5[1,2] under kvm ?

I run OpenBSD 4.4 under Debian 5.0 amd64(linux 2.6.26 with kvm-72)
fine, and snapshots older than 2009-04.

The new snapshots can install smoothly, but stopped at
display 'setting tty flags'.

[1] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/
[2] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/

--
Dongsheng Song

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: kvm with OpenBSD 4.5
  2009-04-16  3:51 kvm with OpenBSD 4.5 Dongsheng Song
@ 2009-04-16  3:59 ` Theo de Raadt
  2009-04-16 15:28   ` FRLinux
  2009-04-16  5:14 ` Brian Jackson
  1 sibling, 1 reply; 11+ messages in thread
From: Theo de Raadt @ 2009-04-16  3:59 UTC (permalink / raw)
  To: Dongsheng Song; +Cc: kvm, misc

> Can any one run OpenBSD 4.5[1,2] under kvm ?
> 
> I run OpenBSD 4.4 under Debian 5.0 amd64(linux 2.6.26 with kvm-72)
> fine, and snapshots older than 2009-04.
> 
> The new snapshots can install smoothly, but stopped at
> display 'setting tty flags'.
> 
> [1] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/
> [2] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/

If they claim to provide a proper i386/amd64 vm environment, and we
don't run properly ... Look, considering we run very well on 99% of
PCs, it means they their claims are balony.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: kvm with OpenBSD 4.5
  2009-04-16  3:51 kvm with OpenBSD 4.5 Dongsheng Song
  2009-04-16  3:59 ` Theo de Raadt
@ 2009-04-16  5:14 ` Brian Jackson
  2009-04-16  8:43   ` Dongsheng Song
  1 sibling, 1 reply; 11+ messages in thread
From: Brian Jackson @ 2009-04-16  5:14 UTC (permalink / raw)
  To: Dongsheng Song; +Cc: kvm

You might want to try 84 with oos optimization off (or better yet 85 when it 
comes out). There was a bug recently (post 84) fixed that affected some BSDs.



On Wednesday 15 April 2009 22:51:13 Dongsheng Song wrote:
> Can any one run OpenBSD 4.5[1,2] under kvm ?
>
> I run OpenBSD 4.4 under Debian 5.0 amd64(linux 2.6.26 with kvm-72)
> fine, and snapshots older than 2009-04.
>
> The new snapshots can install smoothly, but stopped at
> display 'setting tty flags'.
>
> [1] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/
> [2] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/
>
> --
> Dongsheng Song
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: kvm with OpenBSD 4.5
  2009-04-16  5:14 ` Brian Jackson
@ 2009-04-16  8:43   ` Dongsheng Song
  2009-04-16 13:50     ` Brian Jackson
  0 siblings, 1 reply; 11+ messages in thread
From: Dongsheng Song @ 2009-04-16  8:43 UTC (permalink / raw)
  To: Brian Jackson; +Cc: kvm

kvm-84 has same error.

How to disable oos optimization, is there a switch?

2009/4/16 Brian Jackson <iggy@theiggy.com>:
> You might want to try 84 with oos optimization off (or better yet 85 when it
> comes out). There was a bug recently (post 84) fixed that affected some BSDs.
>
>
>
> On Wednesday 15 April 2009 22:51:13 Dongsheng Song wrote:
>> Can any one run OpenBSD 4.5[1,2] under kvm ?
>>
>> I run OpenBSD 4.4 under Debian 5.0 amd64(linux 2.6.26 with kvm-72)
>> fine, and snapshots older than 2009-04.
>>
>> The new snapshots can install smoothly, but stopped at
>> display 'setting tty flags'.
>>
>> [1] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/
>> [2] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/
>>
>> --
>> Dongsheng Song
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: kvm with OpenBSD 4.5
  2009-04-16  8:43   ` Dongsheng Song
@ 2009-04-16 13:50     ` Brian Jackson
  2009-04-17  1:22       ` Dongsheng Song
  0 siblings, 1 reply; 11+ messages in thread
From: Brian Jackson @ 2009-04-16 13:50 UTC (permalink / raw)
  To: Dongsheng Song; +Cc: kvm

it's a module option to the kvm option.

parm:           oos_shadow:bool


On Thursday 16 April 2009 03:43:56 Dongsheng Song wrote:
> kvm-84 has same error.
>
> How to disable oos optimization, is there a switch?
>
> 2009/4/16 Brian Jackson <iggy@theiggy.com>:
> > You might want to try 84 with oos optimization off (or better yet 85 when
> > it comes out). There was a bug recently (post 84) fixed that affected
> > some BSDs.
> >
> > On Wednesday 15 April 2009 22:51:13 Dongsheng Song wrote:
> >> Can any one run OpenBSD 4.5[1,2] under kvm ?
> >>
> >> I run OpenBSD 4.4 under Debian 5.0 amd64(linux 2.6.26 with kvm-72)
> >> fine, and snapshots older than 2009-04.
> >>
> >> The new snapshots can install smoothly, but stopped at
> >> display 'setting tty flags'.
> >>
> >> [1] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/
> >> [2] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/
> >>
> >> --
> >> Dongsheng Song
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe kvm" in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: kvm with OpenBSD 4.5
  2009-04-16  3:59 ` Theo de Raadt
@ 2009-04-16 15:28   ` FRLinux
  0 siblings, 0 replies; 11+ messages in thread
From: FRLinux @ 2009-04-16 15:28 UTC (permalink / raw)
  To: Theo de Raadt; +Cc: Dongsheng Song, kvm, misc

On Thu, Apr 16, 2009 at 4:59 AM, Theo de Raadt <deraadt@cvs.openbsd.org> wrote:
> If they claim to provide a proper i386/amd64 vm environment, and we
> don't run properly ... Look, considering we run very well on 99% of
> PCs, it means they their claims are balony.

I concur,

I had problems with VMware (don't cut my head off :) a couple of years
ago where it would not compile a release properly whereas when I
switched to Xen, it all worked out without a hitch.

Cheers,
Steph

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: kvm with OpenBSD 4.5
  2009-04-16 13:50     ` Brian Jackson
@ 2009-04-17  1:22       ` Dongsheng Song
  2009-04-17  2:19         ` David S. Ahern
  0 siblings, 1 reply; 11+ messages in thread
From: Dongsheng Song @ 2009-04-17  1:22 UTC (permalink / raw)
  To: Brian Jackson; +Cc: kvm, misc

2009/4/16 Brian Jackson <iggy@theiggy.com>:
> it's a module option to the kvm option.
>
> parm:           oos_shadow:bool
>

When I set 'oos_shadow=Y' for kvm-84 module, OpenBSD 4.5 stopped
after display 'clock: unknown CMOS layout'.

When I set 'oos_shadow=N' for kvm-84 module, OpenBSD 4.5 go farther,
stopped after display 'setting ttty flags'.

Both dmesg display like this:

Apr 17 09:16:58 dl kernel: [47761.218611] __ratelimit: 1216720
messages suppressed
Apr 17 09:16:58 dl kernel: [47761.218611] emulation failed (pagetable)
rip d0491096 c9 c3 8a 04

--
Dongsheng Song

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: kvm with OpenBSD 4.5
  2009-04-17  1:22       ` Dongsheng Song
@ 2009-04-17  2:19         ` David S. Ahern
  2009-04-17  3:25           ` Dongsheng Song
  0 siblings, 1 reply; 11+ messages in thread
From: David S. Ahern @ 2009-04-17  2:19 UTC (permalink / raw)
  To: Dongsheng Song; +Cc: Brian Jackson, kvm, misc

I believe this is the patch that should fix the problem:

Index: kvm/arch/x86/kvm/mmu.c
===================================================================
--- kvm.orig/arch/x86/kvm/mmu.c
+++ kvm/arch/x86/kvm/mmu.c
@@ -1254,7 +1254,7 @@ static struct kvm_mmu_page *kvm_mmu_get_
 	pgprintk("%s: adding gfn %lx role %x\n", __func__, gfn, role.word);
 	sp->gfn = gfn;
 	sp->role = role;
-	sp->global = role.cr4_pge;
+	sp->global = 0;
 	hlist_add_head(&sp->hash_link, bucket);
 	if (!direct) {
 		if (rmap_write_protect(vcpu->kvm, gfn))

david


Dongsheng Song wrote:
> 2009/4/16 Brian Jackson <iggy@theiggy.com>:
>> it's a module option to the kvm option.
>>
>> parm:           oos_shadow:bool
>>
> 
> When I set 'oos_shadow=Y' for kvm-84 module, OpenBSD 4.5 stopped
> after display 'clock: unknown CMOS layout'.
> 
> When I set 'oos_shadow=N' for kvm-84 module, OpenBSD 4.5 go farther,
> stopped after display 'setting ttty flags'.
> 
> Both dmesg display like this:
> 
> Apr 17 09:16:58 dl kernel: [47761.218611] __ratelimit: 1216720
> messages suppressed
> Apr 17 09:16:58 dl kernel: [47761.218611] emulation failed (pagetable)
> rip d0491096 c9 c3 8a 04
> 
> --
> Dongsheng Song
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: kvm with OpenBSD 4.5
  2009-04-17  2:19         ` David S. Ahern
@ 2009-04-17  3:25           ` Dongsheng Song
  2009-04-17  3:39             ` David S. Ahern
  0 siblings, 1 reply; 11+ messages in thread
From: Dongsheng Song @ 2009-04-17  3:25 UTC (permalink / raw)
  To: David S. Ahern; +Cc: Brian Jackson, kvm, misc

No good news, same as kvm-84 vanilla.

2009/4/17 David S. Ahern <daahern@cisco.com>:
> I believe this is the patch that should fix the problem:
>
> Index: kvm/arch/x86/kvm/mmu.c
> ===================================================================
> --- kvm.orig/arch/x86/kvm/mmu.c
> +++ kvm/arch/x86/kvm/mmu.c
> @@ -1254,7 +1254,7 @@ static struct kvm_mmu_page *kvm_mmu_get_
>        pgprintk("%s: adding gfn %lx role %x\n", __func__, gfn, role.word);
>        sp->gfn = gfn;
>        sp->role = role;
> -       sp->global = role.cr4_pge;
> +       sp->global = 0;
>        hlist_add_head(&sp->hash_link, bucket);
>        if (!direct) {
>                if (rmap_write_protect(vcpu->kvm, gfn))
>
> david
>
>
> Dongsheng Song wrote:
>> 2009/4/16 Brian Jackson <iggy@theiggy.com>:
>>> it's a module option to the kvm option.
>>>
>>> parm:           oos_shadow:bool
>>>
>>
>> When I set 'oos_shadow=Y' for kvm-84 module, OpenBSD 4.5 stopped
>> after display 'clock: unknown CMOS layout'.
>>
>> When I set 'oos_shadow=N' for kvm-84 module, OpenBSD 4.5 go farther,
>> stopped after display 'setting ttty flags'.
>>
>> Both dmesg display like this:
>>
>> Apr 17 09:16:58 dl kernel: [47761.218611] __ratelimit: 1216720
>> messages suppressed
>> Apr 17 09:16:58 dl kernel: [47761.218611] emulation failed (pagetable)
>> rip d0491096 c9 c3 8a 04
>>
>> --
>> Dongsheng Song

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: kvm with OpenBSD 4.5
  2009-04-17  3:25           ` Dongsheng Song
@ 2009-04-17  3:39             ` David S. Ahern
  2009-04-17  5:06               ` Dongsheng Song
  0 siblings, 1 reply; 11+ messages in thread
From: David S. Ahern @ 2009-04-17  3:39 UTC (permalink / raw)
  To: Dongsheng Song; +Cc: Brian Jackson, kvm, misc

Have you seen this thread:

http://article.gmane.org/gmane.comp.emulators.kvm.devel/28649

It's the one that resulted in these patches by Marcelo:
http://article.gmane.org/gmane.comp.emulators.kvm.devel/30452
http://article.gmane.org/gmane.comp.emulators.kvm.devel/30453

david


Dongsheng Song wrote:
> No good news, same as kvm-84 vanilla.
> 
> 2009/4/17 David S. Ahern <daahern@cisco.com>:
>> I believe this is the patch that should fix the problem:
>>
>> Index: kvm/arch/x86/kvm/mmu.c
>> ===================================================================
>> --- kvm.orig/arch/x86/kvm/mmu.c
>> +++ kvm/arch/x86/kvm/mmu.c
>> @@ -1254,7 +1254,7 @@ static struct kvm_mmu_page *kvm_mmu_get_
>>        pgprintk("%s: adding gfn %lx role %x\n", __func__, gfn, role.word);
>>        sp->gfn = gfn;
>>        sp->role = role;
>> -       sp->global = role.cr4_pge;
>> +       sp->global = 0;
>>        hlist_add_head(&sp->hash_link, bucket);
>>        if (!direct) {
>>                if (rmap_write_protect(vcpu->kvm, gfn))
>>
>> david
>>
>>
>> Dongsheng Song wrote:
>>> 2009/4/16 Brian Jackson <iggy@theiggy.com>:
>>>> it's a module option to the kvm option.
>>>>
>>>> parm:           oos_shadow:bool
>>>>
>>> When I set 'oos_shadow=Y' for kvm-84 module, OpenBSD 4.5 stopped
>>> after display 'clock: unknown CMOS layout'.
>>>
>>> When I set 'oos_shadow=N' for kvm-84 module, OpenBSD 4.5 go farther,
>>> stopped after display 'setting ttty flags'.
>>>
>>> Both dmesg display like this:
>>>
>>> Apr 17 09:16:58 dl kernel: [47761.218611] __ratelimit: 1216720
>>> messages suppressed
>>> Apr 17 09:16:58 dl kernel: [47761.218611] emulation failed (pagetable)
>>> rip d0491096 c9 c3 8a 04
>>>
>>> --
>>> Dongsheng Song

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: kvm with OpenBSD 4.5
  2009-04-17  3:39             ` David S. Ahern
@ 2009-04-17  5:06               ` Dongsheng Song
  0 siblings, 0 replies; 11+ messages in thread
From: Dongsheng Song @ 2009-04-17  5:06 UTC (permalink / raw)
  To: David S. Ahern; +Cc: Brian Jackson, kvm, misc

I don't think it's a cr3 OOS optimisation break, as kvm-72 faild too.

2009/4/17 David S. Ahern <daahern@cisco.com>:
> Have you seen this thread:
>
> http://article.gmane.org/gmane.comp.emulators.kvm.devel/28649
>
> It's the one that resulted in these patches by Marcelo:
> http://article.gmane.org/gmane.comp.emulators.kvm.devel/30452
> http://article.gmane.org/gmane.comp.emulators.kvm.devel/30453

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-04-17  5:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16  3:51 kvm with OpenBSD 4.5 Dongsheng Song
2009-04-16  3:59 ` Theo de Raadt
2009-04-16 15:28   ` FRLinux
2009-04-16  5:14 ` Brian Jackson
2009-04-16  8:43   ` Dongsheng Song
2009-04-16 13:50     ` Brian Jackson
2009-04-17  1:22       ` Dongsheng Song
2009-04-17  2:19         ` David S. Ahern
2009-04-17  3:25           ` Dongsheng Song
2009-04-17  3:39             ` David S. Ahern
2009-04-17  5:06               ` Dongsheng Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox