[Qemu-devel] [PATCH 11/11] kvm, x86: broadcast mce depending on the cpu version

2010-10-14 Thread Jin Dongming
Tested-by: Jin Dongming --- qemu-kvm.c | 63 +-- 1 files changed, 31 insertions(+), 32 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index d2b2459..846f0b6 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1149,6 +1149,34 @@ static int

[Qemu-devel] [PATCH 10/11] kvm, x86: unify sigbus handling, post2

2010-10-14 Thread Jin Dongming
Cleanup to finish unification. Signed-off-by: Hidetoshi Seto Tested-by: Jin Dongming --- qemu-kvm.c | 41 - 1 files changed, 12 insertions(+), 29 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index d96394b..d2b2459 100644 --- a/qemu-kvm.c +++ b

[Qemu-devel] [PATCH 09/11] kvm, x86: unify sigbus handling, post1

2010-10-14 Thread Jin Dongming
Explicitly duplicate blocks for next cleanup. Signed-off-by: Hidetoshi Seto Tested-by: Jin Dongming --- qemu-kvm.c | 56 +--- 1 files changed, 33 insertions(+), 23 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 16bc006..d96394b

[Qemu-devel] [PATCH 08/11] kvm, x86: unify sigbus handling

2010-10-14 Thread Jin Dongming
Now kvm_handle_sigbus can handle both cases of SIGBUS. Note that env is NULL when main thread receives SIGBUS via signalfd, otherwise env points vcpu thread that receives SIGBUS. Signed-off-by: Hidetoshi Seto Tested-by: Jin Dongming --- qemu-kvm.c | 94

[Qemu-devel] [PATCH 07/11] kvm, x86: unify sigbus handling, prep

2010-10-14 Thread Jin Dongming
receives SIGBUS. These 2 take different siginfo, but in both case required parameters are common, the code and the addr in the info. Restruct functions to take the code and the addr explicitly. Signed-off-by: Hidetoshi Seto Tested-by: Jin Dongming --- qemu-kvm.c | 41

[Qemu-devel] [PATCH 06/11] kvm, x86: use target_phys_addr_t

2010-10-14 Thread Jin Dongming
Signed-off-by: Hidetoshi Seto Tested-by: Jin Dongming --- qemu-kvm.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 0ba42fc..89ae524 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1163,7 +1163,7 @@ static void kvm_do_set_mce

[Qemu-devel] [PATCH 04/11] kvm, x86: kvm_mce_inj_* subroutins for templated error injections

2010-10-14 Thread Jin Dongming
Refactor codes for maintainability. Signed-off-by: Hidetoshi Seto Tested-by: Jin Dongming --- qemu-kvm.c | 96 --- 1 files changed, 58 insertions(+), 38 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index a71c07c..9f248f0 100644

[Qemu-devel] [PATCH 05/11] kvm, x86: introduce kvm_inject_x86_mce_on

2010-10-14 Thread Jin Dongming
, }; kvm_inject_x86_mce_on(env, &mce, abort_on_error); Signed-off-by: Hidetoshi Seto Tested-by: Jin Dongming --- qemu-kvm.c | 56 ++-- 1 files changed, 38 insertions(+), 18 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 9f248f0..0ba

[Qemu-devel] [PATCH 02/11] kvm, x86: introduce kvm_do_set_mce

2010-10-14 Thread Jin Dongming
Share the same error handling. Signed-off-by: Hidetoshi Seto Tested-by: Jin Dongming --- qemu-kvm.c | 31 +++ 1 files changed, 19 insertions(+), 12 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 6f62973..1338e99 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c

[Qemu-devel] [PATCH 03/11] kvm, x86: introduce kvm_mce_in_progress

2010-10-14 Thread Jin Dongming
Share same error handing, and put it in #ifdef MCE && i386. Rename this function after MCIP (Machine Check In Progress) flag. Signed-off-by: Hidetoshi Seto Tested-by: Jin Dongming --- qemu-kvm.c | 47 --- 1 files changed, 20 insertion

[Qemu-devel] [PATCH 01/11] kvm, x86: ignore SRAO only when MCG_SER_P is available

2010-10-14 Thread Jin Dongming
And restruct this block to call kvm_mce_in_exception() only when it is required. Signed-off-by: Hidetoshi Seto Tested-by: Jin Dongming --- qemu-kvm.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index e78d850..6f62973 100644

[Qemu-devel] [PATCH 00/11] Descriptions for patches of qemu mce.

2010-10-14 Thread Jin Dongming
These patches do the following changes. 1. Clean up: - Making the similar parts as one shared function. - modularizing the functions of SRAO and SRAR data setting. 2. Unify sigbus handling: - kvm_handle_sigbus can handle both cases of SIGBUS listed as following.