diff options
author | Peter Xu <peterx@redhat.com> | 2018-10-09 15:45:42 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-11-05 13:24:02 -0500 |
commit | 95ecd3df7815b4bc4f9a0f47e1c64d81434715aa (patch) | |
tree | a5dc6391e34cbc7eb5e9d587c5a95f930bbd9428 /stubs/arch-query-cpu-def.c | |
parent | 2cc9ddccebcaa48b3debfc279a83761fcbb7616c (diff) |
intel_iommu: move ce fetching out when sync shadow
There are two callers for vtd_sync_shadow_page_table_range(): one
provided a valid context entry and one not. Move that fetching
operation into the caller vtd_sync_shadow_page_table() where we need to
fetch the context entry.
Meanwhile, remove the error_report_once() directly since we're already
tracing all the error cases in the previous call. Instead, return error
number back to caller. This will not change anything functional since
callers are dropping it after all.
We do this move majorly because we want to do something more later in
vtd_sync_shadow_page_table().
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'stubs/arch-query-cpu-def.c')
0 files changed, 0 insertions, 0 deletions