Re: [PATCH V3 1/2] virtio: introduce methods of sanitizing device features

2014-11-18 Thread Jason Wang
On 11/18/2014 07:04 PM, Michael S. Tsirkin wrote: > On Tue, Nov 18, 2014 at 11:23:49AM +0800, Jason Wang wrote: >> On 11/17/2014 06:11 PM, Michael S. Tsirkin wrote: >>> On Mon, Nov 17, 2014 at 10:44:30AM +0100, Cornelia Huck wrote: On Mon, 17 Nov 2014 11:37:01 +0200 "Michael S. Tsirkin"

Re: [PATCH V3 1/2] virtio: introduce methods of sanitizing device features

2014-11-18 Thread Michael S. Tsirkin
On Tue, Nov 18, 2014 at 11:23:49AM +0800, Jason Wang wrote: > On 11/17/2014 06:11 PM, Michael S. Tsirkin wrote: > > On Mon, Nov 17, 2014 at 10:44:30AM +0100, Cornelia Huck wrote: > >> On Mon, 17 Nov 2014 11:37:01 +0200 > >> "Michael S. Tsirkin" wrote: > >> > >>> On Mon, Nov 17, 2014 at 05:17:17PM

Re: [PATCH V3 1/2] virtio: introduce methods of sanitizing device features

2014-11-17 Thread Jason Wang
On 11/17/2014 06:11 PM, Michael S. Tsirkin wrote: > On Mon, Nov 17, 2014 at 10:44:30AM +0100, Cornelia Huck wrote: >> On Mon, 17 Nov 2014 11:37:01 +0200 >> "Michael S. Tsirkin" wrote: >> >>> On Mon, Nov 17, 2014 at 05:17:17PM +0800, Jason Wang wrote: Buggy host may advertised buggy host featu

Re: [PATCH V3 1/2] virtio: introduce methods of sanitizing device features

2014-11-17 Thread Cornelia Huck
On Mon, 17 Nov 2014 12:28:49 +0200 "Michael S. Tsirkin" wrote: > On Mon, Nov 17, 2014 at 11:20:48AM +0100, Cornelia Huck wrote: > > On Mon, 17 Nov 2014 12:11:39 +0200 > > "Michael S. Tsirkin" wrote: > > > > > On Mon, Nov 17, 2014 at 10:44:30AM +0100, Cornelia Huck wrote: > > > > On Mon, 17 Nov

Re: [PATCH V3 1/2] virtio: introduce methods of sanitizing device features

2014-11-17 Thread Michael S. Tsirkin
On Mon, Nov 17, 2014 at 11:20:48AM +0100, Cornelia Huck wrote: > On Mon, 17 Nov 2014 12:11:39 +0200 > "Michael S. Tsirkin" wrote: > > > On Mon, Nov 17, 2014 at 10:44:30AM +0100, Cornelia Huck wrote: > > > On Mon, 17 Nov 2014 11:37:01 +0200 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Mon,

Re: [PATCH V3 1/2] virtio: introduce methods of sanitizing device features

2014-11-17 Thread Cornelia Huck
On Mon, 17 Nov 2014 12:11:39 +0200 "Michael S. Tsirkin" wrote: > On Mon, Nov 17, 2014 at 10:44:30AM +0100, Cornelia Huck wrote: > > On Mon, 17 Nov 2014 11:37:01 +0200 > > "Michael S. Tsirkin" wrote: > > > > > On Mon, Nov 17, 2014 at 05:17:17PM +0800, Jason Wang wrote: > > > > Buggy host may adv

Re: [PATCH V3 1/2] virtio: introduce methods of sanitizing device features

2014-11-17 Thread Michael S. Tsirkin
On Mon, Nov 17, 2014 at 10:44:30AM +0100, Cornelia Huck wrote: > On Mon, 17 Nov 2014 11:37:01 +0200 > "Michael S. Tsirkin" wrote: > > > On Mon, Nov 17, 2014 at 05:17:17PM +0800, Jason Wang wrote: > > > Buggy host may advertised buggy host features (a usual case is that host > > > advertise a feat

Re: [PATCH V3 1/2] virtio: introduce methods of sanitizing device features

2014-11-17 Thread Cornelia Huck
On Mon, 17 Nov 2014 11:37:01 +0200 "Michael S. Tsirkin" wrote: > On Mon, Nov 17, 2014 at 05:17:17PM +0800, Jason Wang wrote: > > Buggy host may advertised buggy host features (a usual case is that host > > advertise a feature whose dependencies were missed). In this case, driver > > should detect

Re: [PATCH V3 1/2] virtio: introduce methods of sanitizing device features

2014-11-17 Thread Michael S. Tsirkin
On Mon, Nov 17, 2014 at 05:17:17PM +0800, Jason Wang wrote: > Buggy host may advertised buggy host features (a usual case is that host > advertise a feature whose dependencies were missed). In this case, driver > should detect and disable the buggy features by itself. > > This patch introduces dri

[PATCH V3 1/2] virtio: introduce methods of sanitizing device features

2014-11-17 Thread Jason Wang
Buggy host may advertised buggy host features (a usual case is that host advertise a feature whose dependencies were missed). In this case, driver should detect and disable the buggy features by itself. This patch introduces driver specific sanitize_features() method which is called just before fe