Re: [RFC PATCH v4 19/28] swiotlb: Add warnings for use of bounce buffers with SME

From: Paolo Bonzini
Date: Thu Mar 02 2017 - 12:11:35 EST




On 17/02/2017 17:51, Tom Lendacky wrote:
>
> It's meant just to notify the user about the condition. The user could
> then decide to use an alternative device that supports a greater DMA
> range (I can probably change it to a dev_warn_once() so that a device
> is identified). I would be nice if I could issue this message once per
> device that experienced this. I didn't see anything that would do
> that, though.

dev_warn_once would print once only, not once per device. But if you
leave the dev_warn elsewhere, this can be just pr_warn_once.

Paolo