* KVM Bug with Windows 2000
@ 2007-03-15 18:03 Daniel Hecken
[not found] ` <45F98A78.7040309-LcvzS2Pvy/8X0D0ZMPkEVw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Hecken @ 2007-03-15 18:03 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 479 bytes --]
Hello!
I have installed Windows 2000 on KVM SVN snapshot 4539 and the module
from the git master branch. My Computer has an Intel Core 2 Duo and runs
an x86 distribution (Ubuntu Feisty with Kernel 2.6.20).
After the installation without kvm I tried to start the image with kvm
and get the exception in the appendix.
I start kvm with "-localtime -usb -usbdevice tablet -k de -net
nic,model=rtl8139 -net user -monitor tcp::10023,server,nowait -m 384"
and a raw image.
Daniel
[-- Attachment #2: kvm-error.jpg --]
[-- Type: image/jpeg, Size: 8113 bytes --]
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: 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] 5+ messages in thread
* Re: KVM Bug with Windows 2000
@ 2007-03-15 18:07 Daniel Hecken
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Hecken @ 2007-03-15 18:07 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 43 bytes --]
Sorry, that was the wrong picture.
Daniel
[-- Attachment #2: kvm-error1.jpg --]
[-- Type: image/jpeg, Size: 60762 bytes --]
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: 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] 5+ messages in thread
* Re: KVM Bug with Windows 2000
[not found] ` <45F98A78.7040309-LcvzS2Pvy/8X0D0ZMPkEVw@public.gmane.org>
@ 2007-03-18 5:17 ` Avi Kivity
2007-03-19 11:20 ` Avi Kivity
1 sibling, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2007-03-18 5:17 UTC (permalink / raw)
To: Daniel Hecken; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Daniel Hecken wrote:
> Hello!
>
> I have installed Windows 2000 on KVM SVN snapshot 4539 and the module
> from the git master branch. My Computer has an Intel Core 2 Duo and runs
> an x86 distribution (Ubuntu Feisty with Kernel 2.6.20).
>
> After the installation without kvm I tried to start the image with kvm
> and get the exception in the appendix.
>
> I start kvm with "-localtime -usb -usbdevice tablet -k de -net
> nic,model=rtl8139 -net user -monitor tcp::10023,server,nowait -m 384"
> and a raw image.
>
I've seen that too. It dates from the qemu 0.9.0 merge; back then I
hacked the bios to avoid it, and I guess it wasn't fixed by the recent
changes, merely made less reproducible.
I'll try to track it down.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: KVM Bug with Windows 2000
[not found] ` <45F98A78.7040309-LcvzS2Pvy/8X0D0ZMPkEVw@public.gmane.org>
2007-03-18 5:17 ` Avi Kivity
@ 2007-03-19 11:20 ` Avi Kivity
[not found] ` <45FE720A.6070502-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
1 sibling, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2007-03-19 11:20 UTC (permalink / raw)
To: Daniel Hecken; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 473 bytes --]
Daniel Hecken wrote:
> Hello!
>
> I have installed Windows 2000 on KVM SVN snapshot 4539 and the module
> from the git master branch. My Computer has an Intel Core 2 Duo and runs
> an x86 distribution (Ubuntu Feisty with Kernel 2.6.20).
>
> After the installation without kvm I tried to start the image with kvm
> and get the exception in the appendix.
>
>
Let me know if the attached patch fixes this.
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: win-acpi-boot.patch --]
[-- Type: text/x-patch, Size: 533 bytes --]
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index 55139e0..a721b60 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -618,7 +618,7 @@ static void fix_pmode_dataseg(int seg, struct kvm_save_segment *save)
{
struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
- if (vmcs_readl(sf->base) == save->base) {
+ if (vmcs_readl(sf->base) == save->base && (save->base & AR_S_MASK)) {
vmcs_write16(sf->selector, save->selector);
vmcs_writel(sf->base, save->base);
vmcs_write32(sf->limit, save->limit);
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: 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] 5+ messages in thread
* Re: KVM Bug with Windows 2000
[not found] ` <45FE720A.6070502-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-03-20 20:13 ` Daniel Hecken
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Hecken @ 2007-03-20 20:13 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hello Avi,
it works with this patch. I got an Windows 2000 with an ACPI HAL which
can boot now.
Thanks
Daniel
PS. Have you applied this patch to KVM 17?
Avi Kivity schrieb:
> Daniel Hecken wrote:
>> Hello!
>>
>> I have installed Windows 2000 on KVM SVN snapshot 4539 and the module
>> from the git master branch. My Computer has an Intel Core 2 Duo and runs
>> an x86 distribution (Ubuntu Feisty with Kernel 2.6.20).
>>
>> After the installation without kvm I tried to start the image with kvm
>> and get the exception in the appendix.
>>
>>
>
> Let me know if the attached patch fixes this.
>
> ------------------------------------------------------------------------
>
> diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
> index 55139e0..a721b60 100644
> --- a/drivers/kvm/vmx.c
> +++ b/drivers/kvm/vmx.c
> @@ -618,7 +618,7 @@ static void fix_pmode_dataseg(int seg, struct kvm_save_segment *save)
> {
> struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
>
> - if (vmcs_readl(sf->base) == save->base) {
> + if (vmcs_readl(sf->base) == save->base && (save->base & AR_S_MASK)) {
> vmcs_write16(sf->selector, save->selector);
> vmcs_writel(sf->base, save->base);
> vmcs_write32(sf->limit, save->limit);
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-03-20 20:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-15 18:07 KVM Bug with Windows 2000 Daniel Hecken
-- strict thread matches above, loose matches on Subject: below --
2007-03-15 18:03 Daniel Hecken
[not found] ` <45F98A78.7040309-LcvzS2Pvy/8X0D0ZMPkEVw@public.gmane.org>
2007-03-18 5:17 ` Avi Kivity
2007-03-19 11:20 ` Avi Kivity
[not found] ` <45FE720A.6070502-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-03-20 20:13 ` Daniel Hecken
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox