Skip to contentSkip to conversation

Question/problems with Qemu and 64Bit Opensuse 10.2

Qemu-devel Werner Dittmann 3 participants 6 messages Dec 21, 2006 – Dec 23, 2006

lore
Share & tools
lore
#0 lore raw

All,

currently I'm trying to install an Opensuse 10.2 64Bit version in Qemu.

Using a plain 0.82 didn't work out, after the Install screen Qemu goes in a loop. I've tried several parameters (witout net, ACPI, kqemu, etc). I could not even stop Qemu but had to use kill -9 .
Because of some mail in the list that reported similar errors I downloaded the latest CVS version and built it using a gcc 3.3.

That didn't solve the problem: It seems to be in a loop but I can close the qemu window and the window also grabs the mouse cursor (that was not the case with the 0.8.2 version).

After loading the kernel I get the following message on the console (only in VESA mode):

"
Decompressing Linux ... done.
Booting the kernel.
"

and at the bottom of the console screen the message (without the qutes):

"kernel direct mapping tables up to 100000000 @ 8000-d000"

I tried to switch on some -d but I don't know which one is relevant here. I tried "-d int" but this produced about 90MB log data in just some seconds.

Which info do you need to get down to the problem? What can I try to tackle the problem?

Regards,
Werner

PS: Because I'm somewhat experienced with security software I would ask if there is any interest to have a TPM module (Software based TPM) for Qemu that looks like a real HW TPM according the the TPM specs? If yes I would start to look how to do it for Qemu. There is a software based TPM avaliable with a GPL licence. The "only thing" to do would be to wrap it with the HW interface functions (it's a memory mapped interface) so that standard drivers would see it as standard TPM module.

Werner

#1 lore raw

Just forgot to give the info about my system:

Qemu was built and runs on a Suse 10.1 64 bit system (AMD CPU). Also, while compiling Qemu I got quite some warning about casting pointers to integer of different size (64bit vs 32 bit). Is this ok?

Regards,
Werner

Quoted 54 lines · Werner Dittmann

All,

currently I'm trying to install an Opensuse 10.2 64Bit version in Qemu.

Using a plain 0.82 didn't work out, after the Install screen Qemu goes in a loop. I've tried several parameters (witout net, ACPI, kqemu, etc). I could not even stop Qemu but had to use kill -9 .
Because of some mail in the list that reported similar errors I downloaded the latest CVS version and built it using a gcc 3.3.

That didn't solve the problem: It seems to be in a loop but I can close the qemu window and the window also grabs the mouse cursor (that was not the case with the 0.8.2 version).

After loading the kernel I get the following message on the console (only in VESA mode):

"
Decompressing Linux ... done.
Booting the kernel.
"

and at the bottom of the console screen the message (without the qutes):

"kernel direct mapping tables up to 100000000 @ 8000-d000"

I tried to switch on some -d but I don't know which one is relevant here. I tried "-d int" but this produced about 90MB log data in just some seconds.

Which info do you need to get down to the problem? What can I try to tackle the problem?

Regards,
Werner

PS: Because I'm somewhat experienced with security software I would ask if there is any interest to have a TPM module (Software based TPM) for Qemu that looks like a real HW TPM according the the TPM specs? If yes I would start to look how to do it for Qemu. There is a software based TPM avaliable with a GPL licence. The "only thing" to do would be to wrap it with the HW interface functions (it's a memory mapped interface) so that standard drivers would see it as standard TPM module.

Werner

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#2 lore raw
Quoted 6 lines · Werner Dittmann

Just forgot to give the info about my system:

Qemu was built and runs on a Suse 10.1 64 bit system (AMD CPU). Also, while compiling Qemu I got quite some warning about casting pointers to integer of different size (64bit vs 32 bit). Is this ok?

I'm using Fedora Core 5 x86_64 with qemu 0.8.2 and I have noticed these warnings as well. However, they do not seem to be a problem, at least for what I'm currently doing, developing a new system on top of qemu. They seem to be casts from "void *" to "int", which is OK on x86 but generate a warning on x86_64 since sizeof(void *) != sizeof(int) on that platform.

I other words, I doubt that these warnings are the source of the problem.

Regards,

Jonathan

Quoted 69 lines

Regards,
Werner

Quoted 49 lines · Werner Dittmann

All,

currently I'm trying to install an Opensuse 10.2 64Bit version in Qemu.

Using a plain 0.82 didn't work out, after the Install screen Qemu goes in a loop. I've tried several parameters (witout net, ACPI, kqemu, etc). I could not even stop Qemu but had to use kill -9 .
Because of some mail in the list that reported similar errors I downloaded the latest CVS version and built it using a gcc 3.3.

That didn't solve the problem: It seems to be in a loop but I can close the qemu window and the window also grabs the mouse cursor (that was not the case with the 0.8.2 version).

After loading the kernel I get the following message on the console (only in VESA mode):

"
Decompressing Linux ... done.
Booting the kernel.
"

and at the bottom of the console screen the message (without the qutes):

"kernel direct mapping tables up to 100000000 @ 8000-d000"

I tried to switch on some -d but I don't know which one is relevant here. I tried "-d int" but this produced about 90MB log data in just some seconds.

Which info do you need to get down to the problem? What can I try to tackle the problem?

Regards,
Werner

PS: Because I'm somewhat experienced with security software I would ask if there is any interest to have a TPM module (Software based TPM) for Qemu that looks like a real HW TPM according the the TPM specs? If yes I would start to look how to do it for Qemu. There is a software based TPM avaliable with a GPL licence. The "only thing" to do would be to wrap it with the HW interface functions (it's a memory mapped interface) so that standard drivers would see it as standard TPM module.

Werner

Quoted 6 lines

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#3 lore raw
In reply to Werner Dittmann

When Qemu seems to loop I switched to monitor mode "stop" the emulator and gathered the output of some "info" operations. The "info registers" show that registers contain the "strange" values, for example:

RBX=ffffffff80523028
RSP=ffffffff80522dc0
RIP=ffffffff8025e67c

Is it normal that e.g. the instruction pointer (RIP) can have such a value? Any clue where to look why this loop happens?

Just as a side note: trying to print registers using "p /x $r15" this show the content of R15, but using "p /x $rip" or "p /x $rbx" gives an "unknown register" error message.

Regards,
Werner

Quoted 73 lines · Werner Dittmann

Just forgot to give the info about my system:

Qemu was built and runs on a Suse 10.1 64 bit system (AMD CPU). Also, while compiling Qemu I got quite some warning about casting pointers to integer of different size (64bit vs 32 bit). Is this ok?

Regards,
Werner

Quoted 49 lines · Werner Dittmann

All,

currently I'm trying to install an Opensuse 10.2 64Bit version in Qemu.

Using a plain 0.82 didn't work out, after the Install screen Qemu goes in a loop. I've tried several parameters (witout net, ACPI, kqemu, etc). I could not even stop Qemu but had to use kill -9 .
Because of some mail in the list that reported similar errors I downloaded the latest CVS version and built it using a gcc 3.3.

That didn't solve the problem: It seems to be in a loop but I can close the qemu window and the window also grabs the mouse cursor (that was not the case with the 0.8.2 version).

After loading the kernel I get the following message on the console (only in VESA mode):

"
Decompressing Linux ... done.
Booting the kernel.
"

and at the bottom of the console screen the message (without the qutes):

"kernel direct mapping tables up to 100000000 @ 8000-d000"

I tried to switch on some -d but I don't know which one is relevant here. I tried "-d int" but this produced about 90MB log data in just some seconds.

Which info do you need to get down to the problem? What can I try to tackle the problem?

Regards,
Werner

PS: Because I'm somewhat experienced with security software I would ask if there is any interest to have a TPM module (Software based TPM) for Qemu that looks like a real HW TPM according the the TPM specs? If yes I would start to look how to do it for Qemu. There is a software based TPM avaliable with a GPL licence. The "only thing" to do would be to wrap it with the HW interface functions (it's a memory mapped interface) so that standard drivers would see it as standard TPM module.

Werner

Quoted 5 lines

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#4 lore raw
Quoted 10 lines · Werner Dittmann

When Qemu seems to loop I switched to monitor mode "stop" the emulator and gathered the output of some "info" operations. The "info registers" show that registers contain the "strange" values, for example:

RBX=ffffffff80523028
RSP=ffffffff80522dc0
RIP=ffffffff8025e67c

Is it normal that e.g. the instruction pointer (RIP) can have such a value? Any clue where to look why this loop happens?

They look like they were truncated to 32-bit (sign-extended negative) values. Some operations probably assume 32-bit register width.

Thiemo

#5 lore raw
In reply to Werner Dittmann

Just for info: the 32 bit version of Opensuse 10.2 works and installation runs. Thus the problem seems to be something with the 64 bit emulation.

Werner

Quoted 100 lines · Werner Dittmann

When Qemu seems to loop I switched to monitor mode "stop" the emulator and gathered the output of some "info" operations. The "info registers" show that registers contain the "strange" values, for example:

RBX=ffffffff80523028
RSP=ffffffff80522dc0
RIP=ffffffff8025e67c

Is it normal that e.g. the instruction pointer (RIP) can have such a value? Any clue where to look why this loop happens?

Just as a side note: trying to print registers using "p /x $r15" this show the content of R15, but using "p /x $rip" or "p /x $rbx" gives an "unknown register" error message.

Regards,
Werner

Quoted 67 lines · Werner Dittmann

Just forgot to give the info about my system:

Qemu was built and runs on a Suse 10.1 64 bit system (AMD CPU). Also, while compiling Qemu I got quite some warning about casting pointers to integer of different size (64bit vs 32 bit). Is this ok?

Regards,
Werner

Quoted 49 lines · Werner Dittmann

All,

currently I'm trying to install an Opensuse 10.2 64Bit version in Qemu.

Using a plain 0.82 didn't work out, after the Install screen Qemu goes in a loop. I've tried several parameters (witout net, ACPI, kqemu, etc). I could not even stop Qemu but had to use kill -9 .
Because of some mail in the list that reported similar errors I downloaded the latest CVS version and built it using a gcc 3.3.

That didn't solve the problem: It seems to be in a loop but I can close the qemu window and the window also grabs the mouse cursor (that was not the case with the 0.8.2 version).

After loading the kernel I get the following message on the console (only in VESA mode):

"
Decompressing Linux ... done.
Booting the kernel.
"

and at the bottom of the console screen the message (without the qutes):

"kernel direct mapping tables up to 100000000 @ 8000-d000"

I tried to switch on some -d but I don't know which one is relevant here. I tried "-d int" but this produced about 90MB log data in just some seconds.

Which info do you need to get down to the problem? What can I try to tackle the problem?

Regards,
Werner

PS: Because I'm somewhat experienced with security software I would ask if there is any interest to have a TPM module (Software based TPM) for Qemu that looks like a real HW TPM according the the TPM specs? If yes I would start to look how to do it for Qemu. There is a software based TPM avaliable with a GPL licence. The "only thing" to do would be to wrap it with the HW interface functions (it's a memory mapped interface) so that standard drivers would see it as standard TPM module.

Werner

Quoted 5 lines

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Quoted 5 lines

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel