public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	Zachary Amsden <zach-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>,
	Jeremy Fitzhardinge <jeremy-TSDbQ3PG+2Y@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 2/3] Refactor hypercall infrastructure (v3)
Date: Tue, 18 Sep 2007 15:12:48 +0200	[thread overview]
Message-ID: <46EFCED0.5050209@qumranet.com> (raw)
In-Reply-To: <46EFCE2A.1020105-atKUWr5tajBWk0Htik3J/w@public.gmane.org>

Avi Kivity wrote:
> Anthony Liguori wrote:
>   
>> This patch refactors the current hypercall infrastructure to better support live
>> migration and SMP.  It eliminates the hypercall page by trapping the UD
>> exception that would occur if you used the wrong hypercall instruction for the
>> underlying architecture and replacing it with the right one lazily.
>>
>> It also introduces the infrastructure to probe for hypercall available via
>> CPUID leaves 0x40000000.  CPUID leaf 0x40000001 should be filled out by
>> userspace.
>>
>> A fall-out of this patch is that the unhandled hypercalls no longer trap to
>> userspace.  There is very little reason though to use a hypercall to communicate
>> with userspace as PIO or MMIO can be used.  There is no code in tree that uses
>> userspace hypercalls.
>>
>>   
>>     
>
>
> Surprisingly, this patch kills Windows XP (ACPI HAL).  I'll try to find 
> out why.
>
>   

Not trapping #UD brings things back to normal.  So, Windows likes to 
execute undefined instructions, and we don'd handle these well.

I really should start asking for unit tests for these kinds of things 
(execute undefined instruction, see the #UD, say ok).

-- 
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/

  parent reply	other threads:[~2007-09-18 13:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-17 19:57 [PATCH 1/3] Add vmmcall/vmcall to x86_emulate (v3) Anthony Liguori
     [not found] ` <1190059071649-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-09-17 19:57   ` [PATCH 2/3] Refactor hypercall infrastructure (v3) Anthony Liguori
     [not found]     ` <11900590723438-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-09-17 19:57       ` [PATCH 3/3] Add the paravirtualization CPUID entry to QEMU (v3) Anthony Liguori
2007-09-17 21:56       ` [PATCH 2/3] Refactor hypercall infrastructure (v3) Nakajima, Jun
2007-09-18 13:10       ` Avi Kivity
     [not found]         ` <46EFCE2A.1020105-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-18 13:12           ` Avi Kivity [this message]
     [not found]             ` <46EFCED0.5050209-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-18 13:27               ` Avi Kivity
2007-09-18 13:31                 ` [kvm-devel] " Anthony Liguori
2007-09-18  9:18   ` [PATCH 1/3] Add vmmcall/vmcall to x86_emulate (v3) Avi Kivity

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=46EFCED0.5050209@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
    --cc=jeremy-TSDbQ3PG+2Y@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=zach-pghWNbHTmq7QT0dZR+AlfA@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox