Skip to contentSkip to conversation

OpenBSD geometry disk problem

PATCH Applied Magicboiz 5 participants 13 messages Sep 4, 2007 – Sep 20, 2007 5 messages not in the archive KVM

lore
Share & tools
lore

Magicboiz

author
#0 lore raw

Hello,

I'm trying tu play with OpenBSD into KVM-36, and I find KVM has the same issue that had VirtualBox: OpenBSD cannot detect the disk geometry due to a timeout......Check this out:
http://forums.virtualbox.org/viewtopic.php?p=4522

Someone else with the same problem?

Regards

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

#1 lore raw
Quoted 8 lines · Magicboiz

Hello,

I'm trying tu play with OpenBSD into KVM-36, and I find KVM has the same issue that had VirtualBox: OpenBSD cannot detect the disk geometry due to a timeout......Check this out:
http://forums.virtualbox.org/viewtopic.php?p=4522

what happen when you run it with --no-kvm?
is it still happen?

Quoted 9 lines

Someone else with the same problem?

Regards

Quoted 10 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

A message that is not in the archive (sent off-list or not yet received): 46DCC1BD.3000304-atKUWr5tajBWk0Htik3J/[email protected]

author
#3 lore raw

it works!!!

Great :)

Regards.

Quoted 31 lines · Izik Eidus
Quoted 8 lines · Magicboiz

Hello,

I'm trying tu play with OpenBSD into KVM-36, and I find KVM has the same issue that had VirtualBox: OpenBSD cannot detect the disk geometry due to a timeout......Check this out:
http://forums.virtualbox.org/viewtopic.php?p=4522

what happen when you run it with --no-kvm?
is it still happen?

Quoted 19 lines

Someone else with the same problem?

Regards

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

#4 lore raw
Quoted 6 lines · Magicboiz

it works!!!

Great :)

Regards.

ohh, wait it mean we have bug in kvm!
and runing with --no-kvm mean your guest will run very slow. please tell us what is the cpu you use, and the exact message you get plus is it after installtion? in the middle? after boot? while booting? please give as much information as you can.
thansk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

A message that is not in the archive (sent off-list or not yet received): 46DDDE6E.70603-atKUWr5tajBWk0Htik3J/[email protected]

author
#6 lore raw

yes, it runs slowly.....

My config:

CPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Kernel: 2.6.22 (ubuntu 2.6.22-10-generic)
KVM: 36 and 35 tested.

I attach you two screenshots:

- In the first one, you can see at the bottom, how OpenBSD 4.2 kernel
detects an invalid disk geometry. In fact, the kernel does not detect nothing, so it supposes that there is a ST506 disk.

- In the second screenshot, you have kernel messages of timeout while
accessing the disk.

Nothing of this happens with no-kvm flag enabled. I also tried with no-acpi flag, but with the same results.

Regards,
Javier.

Quoted 5 lines · Izik Eidus
Quoted 4 lines · Magicboiz

it works!!!

Great :)

Quoted 9 lines
Quoted 2 lines

Regards.

ohh, wait it mean we have bug in kvm!
and runing with --no-kvm mean your guest will run very slow. please tell us what is the cpu you use, and the exact message you get plus is it after installtion? in the middle? after boot? while booting? please give as much information as you can.
thansk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

#7 lore raw
In reply to a message not in the archive
Quoted 6 lines · Izik Eidus
Quoted 4 lines · Magicboiz

it works!!!

Great :)

Quoted 9 lines
Quoted 3 lines

Regards.

ohh, wait it mean we have bug in kvm!
and runing with --no-kvm mean your guest will run very slow. please tell us what is the cpu you use, and the exact message you get plus is it after installtion? in the middle? after boot? while booting? please give as much information as you can.

This may be related to the large memory support. Maybe we are overwriting the disk geometry information in nvram.

Signature · 8 lines
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
#8 lore raw
In reply to Magicboiz

this bug started at commit 091b206f6c56f2329e11bac2fa40d6f236ab0bc2 and it related to the changes that were made in vmx.c

Laurent, can you help us with this?
(openbsd find the harddisk to be 68mb while it should be 2048mb)

thanks.

Quoted 17 lines · Magicboiz

Hello,

I'm trying tu play with OpenBSD into KVM-36, and I find KVM has the same issue that had VirtualBox: OpenBSD cannot detect the disk geometry due to a timeout......Check this out:
http://forums.virtualbox.org/viewtopic.php?p=4522

Someone else with the same problem?

Regards

Quoted 10 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

A message that is not in the archive (sent off-list or not yet received): 46F0783F.8040700-atKUWr5tajBWk0Htik3J/[email protected]

#10 lore raw
Quoted 6 lines · Izik Eidus

this bug started at commit 091b206f6c56f2329e11bac2fa40d6f236ab0bc2 and it related to the changes that were made in vmx.c

Laurent, can you help us with this?
(openbsd find the harddisk to be 68mb while it should be 2048mb)

Of course.

Could you provide me the disk image (or how to create one) ?

Laurent

Signature · 2 lines
------------- Laurent.Vivier-6ktuUTfB/[email protected]  --------------
          "Software is hard" - Donald Knuth

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

A message that is not in the archive (sent off-list or not yet received): 46F128DB.905-6ktuUTfB/[email protected]

#12 lore raw
Quoted 5 lines · Laurent Vivier
Quoted 3 lines · Izik Eidus

this bug started at commit 091b206f6c56f2329e11bac2fa40d6f236ab0bc2 and it related to the changes that were made in vmx.c

Quoted 9 lines
Quoted 4 lines

Laurent, can you help us with this?
(openbsd find the harddisk to be 68mb while it should be 2048mb)

Of course.

Could you provide me the disk image (or how to create one) ?

i just created image of 2giga:
qemu-img create -f qcow disk.img 2G

and ran it with the openbsd41-i386-07-05-06.iso i searched now in good this seems like link to it:
http://ftp.twaren.net/BSD/OpenBSD/iso/4.1/openbsd41-i386-07-05-06.iso

you dont have to install or to do anything like that, the during the boot from the cd.

thanks!

Quoted 2 lines

Laurent

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#13 lore raw
In reply to a message not in the archive
Quoted 6 lines · Laurent Vivier
Quoted 5 lines · Izik Eidus

this bug started at commit 091b206f6c56f2329e11bac2fa40d6f236ab0bc2 and it related to the changes that were made in vmx.c

Laurent, can you help us with this?
(openbsd find the harddisk to be 68mb while it should be 2048mb)

and it only does that when running under kvm, -no-kvm (AKA qemu in emulated mode) gets it right :

"Intel 82371SB ISA" rev 0x00 at pci0 dev 1 function 0 not configured pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 2048MB, 419434 sectors wd0(pciide0:0:0): using PIO mode 0, DMA mode 2

Carlo

PS. using the last OpenBSD pre4.2 snapshot iso (install42.iso) from ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#14 lore raw

PATCH 1/1 REPN/REPNZ must set rep_prefix to 1 like REP/REPE/REPZ

In reply to a message not in the archive

This patch correct the disk probe problem met with OpenBSD.

This issue appears with commit 091b206f6c56f2329e11bac2fa40d6f236ab0bc2 because before it, the decoding was done internally to kvm and after it is done by x86_emulate.c (which doesn't do it correctly).

---
 drivers/kvm/x86_emulate.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/kvm/x86_emulate.c +1 -2
index 9e2b27a..f294a49 100644
@@ -586,11 +586,10 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
 		case 0xf0:	/* LOCK */
 			c->lock_prefix = 1;
 			break;
+		case 0xf2:	/* REPNE/REPNZ */
 		case 0xf3:	/* REP/REPE/REPZ */
 			c->rep_prefix = 1;
 			break;
-		case 0xf2:	/* REPNE/REPNZ */
-			break;
 		default:
 			goto done_prefixes;
 		}
Signature · 7 lines
1.5.2.4


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

A message that is not in the archive (sent off-list or not yet received): 1190279844678-git-send-email-Laurent.Vivier-6ktuUTfB/[email protected]

#16 lore raw

Re: [PATCH] REPN/REPNZ must set rep_prefix to 1 like REP/REPE/REPZ

Quoted 2 lines · Laurent Vivier

This patch correct the disk probe problem met with OpenBSD.

thanks.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Applied
#17 lore raw

Re: [PATCH] REPN/REPNZ must set rep_prefix to 1 like REP/REPE/REPZ

In reply to a message not in the archive
Quoted 7 lines · Laurent Vivier

This patch correct the disk probe problem met with OpenBSD.

This issue appears with commit 091b206f6c56f2329e11bac2fa40d6f236ab0bc2 because before it, the decoding was done internally to kvm and after it is done by x86_emulate.c (which doesn't do it correctly).

Applied, thanks.

Signature · 7 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/