All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Egger <Christoph.Egger@amd.com>
To: "Jiang, Yunhong" <yunhong.jiang@intel.com>
Cc: "Frank.Vanderlinden@Sun.COM" <Frank.Vanderlinden@sun.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir.fraser@eu.citrix.com>,
	Jan Beulich <JBeulich@novell.com>
Subject: Re: [PATCH 4/6] MCE: Fix the vMCE address translation for HVM guest.
Date: Thu, 28 Jan 2010 09:14:00 +0100	[thread overview]
Message-ID: <201001280914.01835.Christoph.Egger@amd.com> (raw)
In-Reply-To: <C8EDE645B81E5141A8C6B2F73FD9265117C58A3368@shzsmsx501.ccr.corp.intel.com>

On Thursday 28 January 2010 06:55:58 Jiang, Yunhong wrote:
> Fix the vMCE address translation for HVM guest.
>
> Fix address translation when we inject a virtual MCE to HVM guest.

IMO, the whole address translation should be x86 generic with hooks
to handle AMD/Intel specific registers.

Christoph

>
> Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
>
> diff -r ac2951705a86 xen/arch/x86/cpu/mcheck/mce_intel.c
> --- a/xen/arch/x86/cpu/mcheck/mce_intel.c	Tue Jan 26 20:04:51 2010 +0800
> +++ b/xen/arch/x86/cpu/mcheck/mce_intel.c	Tue Jan 26 22:49:11 2010 +0800
> @@ -371,8 +371,8 @@ static void intel_UCR_handler(struct mci
>
>                            gfn =
>                                mfn_to_gmfn(d, ((bank->mc_addr) >>
> PAGE_SHIFT)); -                          bank->mc_addr =
> -                              gfn << PAGE_SHIFT | (bank->mc_addr &
> PAGE_MASK); +                          bank->mc_addr =  gfn << PAGE_SHIFT |
> +                                        (bank->mc_addr & (PAGE_SIZE -1 ));
>                            if (fill_vmsr_data(bank, global->mc_gstatus) ==
> -1) {
>                                mce_printk(MCE_QUIET, "Fill vMCE# data for
> DOM%d "



-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

  reply	other threads:[~2010-01-28  8:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-28  5:55 [PATCH 4/6] MCE: Fix the vMCE address translation for HVM guest Jiang, Yunhong
2010-01-28  8:14 ` Christoph Egger [this message]
2010-01-28  9:44   ` Jiang, Yunhong
2010-01-28 16:31     ` Christoph Egger
2010-01-29  5:55       ` Jiang, Yunhong
2010-01-29  7:44         ` Christoph Egger

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=201001280914.01835.Christoph.Egger@amd.com \
    --to=christoph.egger@amd.com \
    --cc=Frank.Vanderlinden@sun.com \
    --cc=JBeulich@novell.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=yunhong.jiang@intel.com \
    /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.