lkml.org 
[lkml]   [2022]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 5/6] Drivers: hv: vmbus: Accept hv_sock offers in isolated guests
> > @@ -976,17 +976,22 @@ find_primary_channel_by_offer(const struct
> > vmbus_channel_offer_channel *offer)
> > return channel;
> > }
> >
> > -static bool vmbus_is_valid_device(const guid_t *guid)
> > +static bool vmbus_is_valid_offer(const struct vmbus_channel_offer_channel *offer)
> > {
> > + const guid_t *guid = &offer->offer.if_type;
> > u16 i;
> >
> > if (!hv_is_isolation_supported())
> > return true;
> >
> > + if (is_hvsock_offer(offer))
> > + return true;
> > +
> > for (i = 0; i < ARRAY_SIZE(vmbus_devs); i++) {
> > if (guid_equal(guid, &vmbus_devs[i].guid))
> > return vmbus_devs[i].allowed_in_isolated;
> > }
> > +
>
> Spurious newline added?
>
> > return false;

Intentionally added to visually separate the "hvsock", "vmbus_dev" and
"default" blocks, patch seemed simple enough to try to merge in "style
material" without incurring in the question. ;-)

Newline removed.

Thanks,
Andrea

\
 
 \ /
  Last update: 2022-04-15 08:59    [W:0.095 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site