Re: [PATCH 4/4] hv_netvsc: Restrict configurations on isolated guests

2021-01-21 Thread Andrea Parri
> > > > @@ -544,7 +545,8 @@ static int negotiate_nvsp_ver(struct hv_device > > > > *device, > > > > init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = > > > > 1; > > > > > > > > if (nvsp_ver >= NVSP_PROTOCOL_VERSION_5) { > > > > - > > > > init_packet->ms

RE: [PATCH 4/4] hv_netvsc: Restrict configurations on isolated guests

2021-01-21 Thread Haiyang Zhang
Juan Vazquez ; linux- > hyp...@vger.kernel.org; David S. Miller ; Jakub > Kicinski ; netdev@vger.kernel.org > Subject: Re: [PATCH 4/4] hv_netvsc: Restrict configurations on isolated > guests > > > > @@ -544,7 +545,8 @@ static int negotiate_nvsp_ver(

Re: [PATCH 4/4] hv_netvsc: Restrict configurations on isolated guests

2021-01-20 Thread Andrea Parri
> > @@ -544,7 +545,8 @@ static int negotiate_nvsp_ver(struct hv_device > > *device, > > init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1; > > > > if (nvsp_ver >= NVSP_PROTOCOL_VERSION_5) { > > - init_packet->msg.v2_msg.send_ndis_config.capability.sriov = > > 1; >

Re: [PATCH 4/4] hv_netvsc: Restrict configurations on isolated guests

2021-01-20 Thread Jakub Kicinski
On Tue, 19 Jan 2021 18:58:41 +0100 Andrea Parri (Microsoft) wrote: > Restrict the NVSP protocol version(s) that will be negotiated with the > host to be NVSP_PROTOCOL_VERSION_61 or greater if the guest is running > isolated. Moreover, do not advertise the SR-IOV capability and ignore > NVSP_MSG_4_

RE: [PATCH 4/4] hv_netvsc: Restrict configurations on isolated guests

2021-01-20 Thread Haiyang Zhang
Juan Vazquez > ; linux-hyp...@vger.kernel.org; Andrea Parri > (Microsoft) ; David S. Miller > ; Jakub Kicinski ; > netdev@vger.kernel.org > Subject: [PATCH 4/4] hv_netvsc: Restrict configurations on isolated guests > > Restrict the NVSP protocol version(s) that will be negotiate

[PATCH 4/4] hv_netvsc: Restrict configurations on isolated guests

2021-01-19 Thread Andrea Parri (Microsoft)
Restrict the NVSP protocol version(s) that will be negotiated with the host to be NVSP_PROTOCOL_VERSION_61 or greater if the guest is running isolated. Moreover, do not advertise the SR-IOV capability and ignore NVSP_MSG_4_TYPE_SEND_VF_ASSOCIATION messages in isolated guests, which are not suppose