* SDL problem with 2.6.21/kvm-17 on x86_64?
@ 2007-05-15 3:27 Joshua Hoblitt
[not found] ` <20070515032704.GH31709-yzCOL6m36nBBFM95potWkg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Joshua Hoblitt @ 2007-05-15 3:27 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1.1: Type: text/plain, Size: 1441 bytes --]
Hello,
I'm attempting to get kvm-17 to work on a "server" system that has a kernel
built without alsa support and libsdl is built without alsa or oss support.
I get this error when attempting to start qemu:
--
$ sudo /usr/local/kvm/bin/qemu-system-x86_64 . -hda vdisk.img -cdrom /data/ipp000.0/jhoblitt/openSUSE-10.2-GM-DVD-x86_64.iso -boot d -m 1024
Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
error, but for better emulation accuracy either use a 2.6 host Linux
kernel or type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.
kvm_create_vm: Invalid argument
Could not create KVM context
$ lsmod | grep kvm
kvm_amd 19348 0
kvm 68040 1 kvm_amd
--
This system has 2 x Opeterson 2220s on a Tyan S2927. I'm guess that this
failure is somehow related to sound as when I try to start qemu with -no-kvm...
--
sudo /usr/local/kvm/bin/qemu-system-x86_64 . -hda vdisk.img -cdrom /data/ipp000.0/jhoblitt/openSUSE-10.2-GM-DVD-x86_64.iso -boot d -m 1024 -no-kvm
Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
error, but for better emulation accuracy either use a 2.6 host Linux kernel or
type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.
Could not initialize SDL - exiting
--
So is the lack of sound hardware the problem here? If so, will it be possible
at somepoint to run without it?
-J
--
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SDL problem with 2.6.21/kvm-17 on x86_64?
[not found] ` <20070515032704.GH31709-yzCOL6m36nBBFM95potWkg@public.gmane.org>
@ 2007-05-15 7:54 ` Avi Kivity
[not found] ` <4649671D.5000705-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2007-05-15 7:54 UTC (permalink / raw)
To: Joshua Hoblitt; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Joshua Hoblitt wrote:
> Hello,
>
> I'm attempting to get kvm-17 to work on a "server" system that has a kernel
> built without alsa support and libsdl is built without alsa or oss support.
>
> I get this error when attempting to start qemu:
> --
> $ sudo /usr/local/kvm/bin/qemu-system-x86_64 . -hda vdisk.img -cdrom /data/ipp000.0/jhoblitt/openSUSE-10.2-GM-DVD-x86_64.iso -boot d -m 1024
> Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
> error, but for better emulation accuracy either use a 2.6 host Linux
> kernel or type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.
> kvm_create_vm: Invalid argument
> Could not create KVM context
> $ lsmod | grep kvm
> kvm_amd 19348 0
> kvm 68040 1 kvm_amd
>
>
Strange. Can you provide an strace of the run?
> --
> sudo /usr/local/kvm/bin/qemu-system-x86_64 . -hda vdisk.img -cdrom /data/ipp000.0/jhoblitt/openSUSE-10.2-GM-DVD-x86_64.iso -boot d -m 1024 -no-kvm
> Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
> error, but for better emulation accuracy either use a 2.6 host Linux kernel or
> type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.
> Could not initialize SDL - exiting
> --
>
> So is the lack of sound hardware the problem here? If so, will it be possible
> at somepoint to run without it?
>
>
In addition to the problem above, qemu couldn't access your X server.
Try adding '-vnc :1' to the command line.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] Handle #SS(0), caused by address size override in vm86 mode
[not found] ` <4649671D.5000705-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-05-17 1:11 ` Kamble, Nitin A
[not found] ` <1179364298.21228.6.camel-mpPvwfgnXtFHIUuj5cj4Omt3HXsI98Cx0E9HWUfgJXw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Kamble, Nitin A @ 2007-05-17 1:11 UTC (permalink / raw)
To: kvm-devel
[-- Attachment #1.1.1.1: Type: text/plain, Size: 549 bytes --]
Hi Avi,
I was playing with KVM while booting SuSE Linux 10.1 on it. And I found
it was bailing out with #SS fault. I root caused it to the address size
override opcode (0x67) from a mov instruction from the boot loader.
The attached patch handles the #SS(0) fault with emulation, letting
guest can proceed further.
Thanks & Regards,
Nitin
Open Source Technology Center, Intel Corporation.
-------------------------------------------------------------------------
The mind is like a parachute; it works much better when it's open.
[-- Attachment #1.1.1.2: Type: text/html, Size: 1250 bytes --]
[-- Attachment #1.1.2: ss_fault_handling_in_vm86mode.patch --]
[-- Type: text/x-patch, Size: 921 bytes --]
commit e7ae040a34ae99ac4eb08701b1a54a7e4315238a
Author: Nitin A Kamble <nitin.a.kamble@intel.com>
Date: Wed May 16 21:05:58 2007 -0700
Instruction with address size override prefix opcode 0x67
Cause the #SS fault with 0 error code in VM86 mode.
<Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index b1430e1..7d7edb7 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1487,7 +1487,9 @@ static int handle_rmode_exception(struct kvm_vcpu *vcpu,
if (!vcpu->rmode.active)
return 0;
- if (vec == GP_VECTOR && err_code == 0)
+ /* Instruction with address size override prefix opcode 0x67
+ Cause the #SS fault with 0 error code in VM86 mode. */
+ if (((vec == GP_VECTOR) || (vec == SS_VECTOR)) && err_code == 0)
if (emulate_instruction(vcpu, NULL, 0, 0) == EMULATE_DONE)
return 1;
return 0;
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Handle #SS(0), caused by address size override in vm86 mode
[not found] ` <1179364298.21228.6.camel-mpPvwfgnXtFHIUuj5cj4Omt3HXsI98Cx0E9HWUfgJXw@public.gmane.org>
@ 2007-05-17 12:51 ` Avi Kivity
0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2007-05-17 12:51 UTC (permalink / raw)
To: Kamble, Nitin A; +Cc: kvm-devel
Kamble, Nitin A wrote:
> Hi Avi,
>
> I was playing with KVM while booting SuSE Linux 10.1 on it. And I
> found it was bailing out with #SS fault. I root caused it to the
> address size override opcode (0x67) from a mov instruction from the
> boot loader.
> The attached patch handles the #SS(0) fault with emulation, letting
> guest can proceed further.
Applied, thanks. Please use Linux style comment next time (
/*
* blah blah
*/
)
> commit e7ae040a34ae99ac4eb08701b1a54a7e4315238a
> Author: Nitin A Kamble <nitin.a.kamble-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Date: Wed May 16 21:05:58 2007 -0700
>
> Instruction with address size override prefix opcode 0x67
> Cause the #SS fault with 0 error code in VM86 mode.
> <Signed-Off-By: Nitin A Kamble <nitin.a.kamble-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
> diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
> index b1430e1..7d7edb7 100644
> --- a/drivers/kvm/vmx.c
> +++ b/drivers/kvm/vmx.c
> @@ -1487,7 +1487,9 @@ static int handle_rmode_exception(struct kvm_vcpu *vcpu,
> if (!vcpu->rmode.active)
> return 0;
>
> - if (vec == GP_VECTOR && err_code == 0)
> + /* Instruction with address size override prefix opcode 0x67
> + Cause the #SS fault with 0 error code in VM86 mode. */
> + if (((vec == GP_VECTOR) || (vec == SS_VECTOR)) && err_code == 0)
> if (emulate_instruction(vcpu, NULL, 0, 0) == EMULATE_DONE)
> return 1;
> return 0;
>
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-05-17 12:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-15 3:27 SDL problem with 2.6.21/kvm-17 on x86_64? Joshua Hoblitt
[not found] ` <20070515032704.GH31709-yzCOL6m36nBBFM95potWkg@public.gmane.org>
2007-05-15 7:54 ` Avi Kivity
[not found] ` <4649671D.5000705-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-05-17 1:11 ` [PATCH] Handle #SS(0), caused by address size override in vm86 mode Kamble, Nitin A
[not found] ` <1179364298.21228.6.camel-mpPvwfgnXtFHIUuj5cj4Omt3HXsI98Cx0E9HWUfgJXw@public.gmane.org>
2007-05-17 12:51 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox