Re: [PATCH v9 11/13] iommu/amd: Don't copy GCR3 table root pointer

2017-08-04 Thread Joerg Roedel
On Tue, Aug 01, 2017 at 07:37:27PM +0800, Baoquan He wrote: > @@ -908,6 +911,14 @@ static int copy_device_table(void) > old_dev_tbl_cpy[devid].data[1] > = old_devtb[devid].data[1]; > __set_bit(dom_id,

[PATCH v9 11/13] iommu/amd: Don't copy GCR3 table root pointer

2017-08-01 Thread Baoquan He
When iommu is pre_enabled in kdump kernel, if a device is set up with guest translations (DTE.GV=1), then don't copy GCR3 table root pointer but move the device over to an empty guest-cr3 table and handle the faults in the PPR log (which answer them with INVALID). After all these PPR faults are