|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Fixes to mtrr interface code in linux guest.
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID ecc20905cde3e0376f0308ec475297fff9255852
# Parent c2e93601eae576e2f3c7e332c41e6f37cb635b78
Fixes to mtrr interface code in linux guest.
Signed-off-by: Jan Beulich <JBeulich@xxxxxxxxxx>
diff -r c2e93601eae5 -r ecc20905cde3
linux-2.6-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/main.c
--- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/main.c Wed Jan 4
17:37:24 2006
+++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/main.c Wed Jan 4
17:47:11 2006
@@ -67,8 +67,11 @@
op.u.add_memtype.pfn = base;
op.u.add_memtype.nr_pfns = size;
op.u.add_memtype.type = type;
- if ((error = HYPERVISOR_dom0_op(&op)))
+ error = HYPERVISOR_dom0_op(&op);
+ if (error) {
+ BUG_ON(error > 0);
return error;
+ }
if (increment)
++usage_table[op.u.add_memtype.reg];
@@ -121,8 +124,12 @@
if (--usage_table[reg] < 1) {
op.cmd = DOM0_DEL_MEMTYPE;
op.u.del_memtype.handle = 0;
- op.u.add_memtype.reg = reg;
- (void)HYPERVISOR_dom0_op(&op);
+ op.u.del_memtype.reg = reg;
+ error = HYPERVISOR_dom0_op(&op);
+ if (error) {
+ BUG_ON(error > 0);
+ goto out;
+ }
}
error = reg;
out:
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Fixes to mtrr interface code in linux guest.,
Xen patchbot -unstable <=
|
|
|
|
|