From: Andre Przywara <andre.przywara@amd.com>
To: <avi@redhat.com>
Cc: <mtosatti@redhat.com>, <kvm@vger.kernel.org>,
<joerg.roedel@amd.com>, Andre Przywara <andre.przywara@amd.com>
Subject: [PATCH] kvm/svm: fix DR interception handling on upcoming AMD CPUs
Date: Wed, 9 Feb 2011 01:22:29 +0100 [thread overview]
Message-ID: <1297210949-13240-1-git-send-email-andre.przywara@amd.com> (raw)
Somehow the code line advancing the RIP and checking for exceptions
got dropped between the post on the ML and the commit.
Add it again to let guests boot on upcoming AMD CPUs again.
Reported-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
---
arch/x86/kvm/svm.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 25bd1bc..be06e58 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -2776,6 +2776,7 @@ static int dr_interception(struct vcpu_svm *svm)
if (!err)
kvm_register_write(&svm->vcpu, reg, val);
}
+ kvm_complete_insn_gp(&svm->vcpu, err);
return 1;
}
--
1.6.4
next reply other threads:[~2011-02-09 0:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-09 0:22 Andre Przywara [this message]
2011-02-09 10:01 ` [PATCH] kvm/svm: fix DR interception handling on upcoming AMD CPUs Roedel, Joerg
2011-02-09 10:43 ` Andre Przywara
2011-02-09 12:56 ` Roedel, Joerg
2011-02-09 13:39 ` 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=1297210949-13240-1-git-send-email-andre.przywara@amd.com \
--to=andre.przywara@amd.com \
--cc=avi@redhat.com \
--cc=joerg.roedel@amd.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox