Re: [Xen-devel] [PATCH v5 6/7] VT-d: Some cleanups

2016-10-12 Thread Jan Beulich
>>> On 11.10.16 at 02:57, wrote: > @@ -638,7 +638,8 @@ static int msi_msg_to_remap_entry( > GET_IREMAP_ENTRY(ir_ctrl->iremap_maddr, index, > iremap_entries, iremap_entry); > > -memcpy(_ire, iremap_entry, sizeof(struct iremap_entry)); > +if (

[Xen-devel] [PATCH v5 6/7] VT-d: Some cleanups

2016-10-10 Thread Feng Wu
Use type-safe structure assignment instead of memcpy() Use sizeof(*iremap_entry) Signed-off-by: Feng Wu --- xen/drivers/passthrough/vtd/intremap.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/xen/drivers/passthrough/vtd/intremap.c