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
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
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
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
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
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
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
,
};
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
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
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
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
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.
12 matches
Mail list logo