Skip to contentSkip to conversation

x86/HVM: add missing assert to stdvga's mmio_move()

PATCH In review Jan Beulich 2 participants 2 messages Dec 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/HVM: add missing assert to stdvga's mmio_move()

... to match the IOREQ_READ path.

xen/arch/x86/hvm/stdvga.c +1 -0
@@ -519,6 +519,7 @@ static int mmio_move(struct hvm_hw_stdvg
                             put_page(dp);
                         return 0;
                     }
+                    ASSERT(!dp);
                     tmp = stdvga_mem_read(data, p->size);
                 }
                 stdvga_mem_write(addr, tmp, p->size);

x86/HVM: add missing assert to stdvga's mmio_move()

... to match the IOREQ_READ path.

xen/arch/x86/hvm/stdvga.c +1 -0
@@ -519,6 +519,7 @@ static int mmio_move(struct hvm_hw_stdvg
                             put_page(dp);
                         return 0;
                     }
+                    ASSERT(!dp);
                     tmp = stdvga_mem_read(data, p->size);
                 }
                 stdvga_mem_write(addr, tmp, p->size);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Jan Beulich

... to match the IOREQ_READ path.

Quoted 17 lines
xen/arch/x86/hvm/stdvga.c +1 -0
@@ -519,6 +519,7 @@ static int mmio_move(struct hvm_hw_stdvg
                             put_page(dp);
                         return 0;
                     }
+                    ASSERT(!dp);
                     tmp = stdvga_mem_read(data, p->size);
                 }
                 stdvga_mem_write(addr, tmp, p->size);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel