All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Hecken <dh-LcvzS2Pvy/8X0D0ZMPkEVw@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: KVM Bug with Windows 2000
Date: Tue, 20 Mar 2007 21:13:31 +0100	[thread overview]
Message-ID: <4600406B.7020705@bahntechnik.de> (raw)
In-Reply-To: <45FE720A.6070502-atKUWr5tajBWk0Htik3J/w@public.gmane.org>

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

  parent reply	other threads:[~2007-03-20 20:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-15 18:03 KVM Bug with Windows 2000 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 message]
  -- strict thread matches above, loose matches on Subject: below --
2007-03-15 18:07 Daniel Hecken

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4600406B.7020705@bahntechnik.de \
    --to=dh-lcvzs2pvy/8x0d0zmpkevw@public.gmane.org \
    --cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.