xcp-1.6-updates/xen-4.1.hg

changeset 23328:9908dc9808b7

vt-d: fix wrong addr in IOTLB invalidation descriptor

According to vt-d specs, the addr in IOTLB invalidation descriptor
should be 4K page aligned.

Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Committed-by: Keir Fraser <keir@xen.org>
xen-unstable changeset: 25617:75eb78d6cf54
xen-unstable date: Thu Jul 19 15:46:02 2012 +0100
author Yang Zhang <yang.z.zhang@Intel.com>
date Mon Jul 30 13:38:26 2012 +0100 (2012-07-30)
parents 9d30201cbcc4
children fa34499e8f6c
files xen/drivers/passthrough/vtd/qinval.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/qinval.c	Mon Jul 30 13:37:44 2012 +0100
     1.2 +++ b/xen/drivers/passthrough/vtd/qinval.c	Mon Jul 30 13:38:26 2012 +0100
     1.3 @@ -140,7 +140,7 @@ static int gen_iotlb_inv_dsc(struct iomm
     1.4      qinval_entry->q.iotlb_inv_dsc.hi.am = am;
     1.5      qinval_entry->q.iotlb_inv_dsc.hi.ih = ih;
     1.6      qinval_entry->q.iotlb_inv_dsc.hi.res_1 = 0;
     1.7 -    qinval_entry->q.iotlb_inv_dsc.hi.addr = addr;
     1.8 +    qinval_entry->q.iotlb_inv_dsc.hi.addr = addr >> PAGE_SHIFT_4K;
     1.9  
    1.10      unmap_vtd_domain_page(qinval_entries);
    1.11      spin_unlock_irqrestore(&qi_ctrl->qinval_lock, flags);