Re: [PATCH v4 2/6] net/vmnet: add vmnet backends to qapi/net

2021-11-11 Thread Vladislav Yaroshchuk
вт, 9 нояб. 2021 г. в 08:41, Markus Armbruster : > Vladislav Yaroshchuk writes: > > > Create separate netdevs for each vmnet operating mode: > > - vmnet-host > > - vmnet-shared > > - vmnet-bridged > > > > Signed-off-by: Vladislav Yaroshchuk > &g

Re: [PATCH v4 2/6] net/vmnet: add vmnet backends to qapi/net

2021-11-12 Thread Vladislav Yaroshchuk
чт, 11 нояб. 2021 г., 11:49 PM Eric Blake : > On Thu, Nov 11, 2021 at 06:21:28PM +0300, Vladislav Yaroshchuk wrote: > > > > > +# > > > > +# Since: 6.2 > > > > > > Missed 6.2, please adjust. More of the same below. > > > > > > &

[PATCH v5 1/6] net/vmnet: add vmnet dependency and customizable option

2021-11-12 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- meson.build | 4 meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 3 files changed, 9 insertions(+) diff --git a/meson.build b/meson.build index 2ece4fe088..202e04af31 100644 --- a/meson.build +++ b

[PATCH v5 0/6] Add vmnet.framework based network backend

2021-11-12 Thread Vladislav Yaroshchuk
k uuid setting feature - Refactored sources a bit v4 -> v5: - Missed 6.2 boat, now 7.0 candidate - Fix qapi netdev descriptions and styles (@subnetmask -> @subnet-mask) - Support vmnet-shared IPv6 prefix setting feature Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk

[PATCH v5 2/6] net/vmnet: add vmnet backends to qapi/net

2021-11-12 Thread Vladislav Yaroshchuk
Create separate netdevs for each vmnet operating mode: - vmnet-host - vmnet-shared - vmnet-bridged Signed-off-by: Vladislav Yaroshchuk --- net/clients.h | 11 net/meson.build | 7 +++ net/net.c | 10 net/vmnet-bridged.m | 25 + net/vmnet-common.m

[PATCH v5 4/6] net/vmnet: implement host mode (vmnet-host)

2021-11-12 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 99 +--- 1 file changed, 93 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 4a5ef99dc7..f7dbd3f9bf 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

[PATCH v5 3/6] net/vmnet: implement shared mode (vmnet-shared)

2021-11-12 Thread Vladislav Yaroshchuk
Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 305 + net/vmnet-shared.c | 75 ++- net/vmnet_int.h| 23 3 files changed, 399 insertions(+), 4 deletions(-) diff --git a/net/vmnet-common.m

[PATCH v5 5/6] net/vmnet: implement bridged mode (vmnet-bridged)

2021-11-12 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 98 ++--- 1 file changed, 92 insertions(+), 6 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 4e42a90391..3c9da9dc8b 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

[PATCH v5 6/6] net/vmnet: update qemu-options.hx

2021-11-12 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- qemu-options.hx | 25 + 1 file changed, 25 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index 7749f59300..350d43bbc0 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2677,6 +2677,25 @@ DEF("netdev"

Re: [PATCH v5 0/6] Add vmnet.framework based network backend

2021-11-15 Thread Vladislav Yaroshchuk
пн, 15 нояб. 2021 г. в 07:53, Jason Wang : > On Fri, Nov 12, 2021 at 5:14 PM Vladislav Yaroshchuk > wrote: > > > > macOS provides networking API for VMs called 'vmnet.framework': > > https://developer.apple.com/documentation/vmnet > > > > We c

Re: [PATCH v5 0/6] Add vmnet.framework based network backend

2021-11-16 Thread Vladislav Yaroshchuk
вт, 16 нояб. 2021 г. в 10:23, Jason Wang : > On Mon, Nov 15, 2021 at 6:45 PM Vladislav Yaroshchuk > wrote: > > > > > > > > пн, 15 нояб. 2021 г. в 07:53, Jason Wang : > >> > >> On Fri, Nov 12, 2021 at 5:14 PM Vladislav Yaroshchuk > >> w

Re: [PATCH v5 3/6] net/vmnet: implement shared mode (vmnet-shared)

2021-11-18 Thread Vladislav Yaroshchuk
пн, 15 нояб. 2021 г. в 07:47, Jason Wang : > On Fri, Nov 12, 2021 at 5:14 PM Vladislav Yaroshchuk > wrote: > > > > Signed-off-by: Phillip Tennen > > Signed-off-by: Vladislav Yaroshchuk > > --- > > Commit log please. > > > Sorry, I don't unde

Re: [PATCH v5 0/6] Add vmnet.framework based network backend

2021-11-18 Thread Vladislav Yaroshchuk
ср, 17 нояб. 2021 г. в 09:10, Jason Wang : > On Tue, Nov 16, 2021 at 11:30 PM Vladislav Yaroshchuk > wrote: > > > > > > > > вт, 16 нояб. 2021 г. в 10:23, Jason Wang : > >> > >> On Mon, Nov 15, 2021 at 6:45 PM Vladislav Yaroshchuk > >> wro

Re: [PATCH v5 3/6] net/vmnet: implement shared mode (vmnet-shared)

2021-11-19 Thread Vladislav Yaroshchuk
пт, 19 нояб. 2021 г. в 05:57, Jason Wang : > On Fri, Nov 19, 2021 at 1:12 AM Vladislav Yaroshchuk > wrote: > > > > > > > > пн, 15 нояб. 2021 г. в 07:47, Jason Wang : > >> > >> On Fri, Nov 12, 2021 at 5:14 PM Vladislav Yaroshchuk > >

Re: [PATCH v4 2/6] net/vmnet: add vmnet backends to qapi/net

2021-11-19 Thread Vladislav Yaroshchuk
t so much difference to v4. I think we can discuss qapi here, after I'll submit v6 and then you can review it skipping v5. > Vladislav Yaroshchuk writes: > > > --325dde05d084e6e4 > > Content-Type: text/plain; charset="UTF-8" > > Content-Transfer-E

[PATCH v14 2/8] net/vmnet: add vmnet backends to qapi/net

2022-02-25 Thread Vladislav Yaroshchuk
Create separate netdevs for each vmnet operating mode: - vmnet-host - vmnet-shared - vmnet-bridged Signed-off-by: Vladislav Yaroshchuk --- net/clients.h | 11 net/meson.build | 7 +++ net/net.c | 10 net/vmnet-bridged.m | 25 + net/vmnet-common.m

[PATCH v14 3/8] net/vmnet: implement shared mode (vmnet-shared)

2022-02-25 Thread Vladislav Yaroshchuk
noring and not processing them when related flag is set. Here we do using the second way. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 302 + net/vmnet-shared.c | 94 +- net/vmnet_int.h| 3

[PATCH v14 1/8] net/vmnet: add vmnet dependency and customizable option

2022-02-25 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. vmnet features to be used are available since macOS 11.0, corresponding probe is created into meson.build. Signed-off-by: Vladislav Yaroshchuk --- meson.build

[PATCH v14 4/8] net/vmnet: implement host mode (vmnet-host)

2022-02-25 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 115 --- 1 file changed, 109 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 32dc437037..2a711400e7 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

[PATCH v14 0/8] Add vmnet.framework based network backend

2022-02-25 Thread Vladislav Yaroshchuk
nstead (it can be a thing to discuss, maybe exists a better way to perform the packets transfer) - update hmp commands - a bit refactor everything - change the email from which patches are being submitted, same to email in MAINTAINERS list - P.S. sorry for so late reply Vladislav Yaroshchu

[PATCH v14 5/8] net/vmnet: implement bridged mode (vmnet-bridged)

2022-02-25 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 129 ++-- 1 file changed, 124 insertions(+), 5 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index c735901666..a19b10909e 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

[PATCH v15 2/8] net/vmnet: add vmnet backends to qapi/net

2022-02-25 Thread Vladislav Yaroshchuk
Create separate netdevs for each vmnet operating mode: - vmnet-host - vmnet-shared - vmnet-bridged Signed-off-by: Vladislav Yaroshchuk --- net/clients.h | 11 net/meson.build | 7 +++ net/net.c | 10 net/vmnet-bridged.m | 25 + net/vmnet-common.m

[PATCH v14 8/8] net/vmnet: update MAINTAINERS list

2022-02-25 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fa8adc2618..8e0fa7a2bf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2730,6 +2730,11 @@ W: http://info.iet.unipi.it/~luigi/netmap/ S: Maintained F: net

[PATCH v15 3/8] net/vmnet: implement shared mode (vmnet-shared)

2022-02-25 Thread Vladislav Yaroshchuk
noring and not processing them when related flag is set. Here we do using the second way. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 302 + net/vmnet-shared.c | 94 +- net/vmnet_int.h| 3

[PATCH v14 6/8] net/vmnet: update qemu-options.hx

2022-02-25 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- qemu-options.hx | 25 + 1 file changed, 25 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index 094a6c1d7c..d2deab95d0 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2742,6 +2742,25 @@ DEF("netdev"

[PATCH v15 6/8] net/vmnet: update qemu-options.hx

2022-02-25 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- qemu-options.hx | 25 + 1 file changed, 25 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index 094a6c1d7c..d2deab95d0 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2742,6 +2742,25 @@ DEF("netdev"

[PATCH v15 5/8] net/vmnet: implement bridged mode (vmnet-bridged)

2022-02-25 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 129 ++-- 1 file changed, 124 insertions(+), 5 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index c735901666..a19b10909e 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

[PATCH v15 0/8] Add vmnet.framework based network backend

2022-02-25 Thread Vladislav Yaroshchuk
nstead (it can be a thing to discuss, maybe exists a better way to perform the packets transfer) - update hmp commands - a bit refactor everything - change the email from which patches are being submitted, same to email in MAINTAINERS list - P.S. sorry for so late reply v14 -> v15 - restor

[PATCH v15 7/8] net/vmnet: update hmp-commands.hx

2022-02-25 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- hmp-commands.hx | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 70a9136ac2..406ac4bba8 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1265,7 +1265,11 @@ ERST { .name

[PATCH v15 8/8] net/vmnet: update MAINTAINERS list

2022-02-25 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fa8adc2618..8e0fa7a2bf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2730,6 +2730,11 @@ W: http://info.iet.unipi.it/~luigi/netmap/ S: Maintained F: net

[PATCH v14 7/8] net/vmnet: update hmp-commands.hx

2022-02-25 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- hmp-commands.hx | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 70a9136ac2..406ac4bba8 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1265,7 +1265,11 @@ ERST { .name

[PATCH v15 1/8] net/vmnet: add vmnet dependency and customizable option

2022-02-25 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. vmnet features to be used are available since macOS 11.0, corresponding probe is created into meson.build. Signed-off-by: Vladislav Yaroshchuk --- meson.build

[PATCH v15 4/8] net/vmnet: implement host mode (vmnet-host)

2022-02-25 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 115 --- 1 file changed, 109 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 32dc437037..2a711400e7 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

Re: [PATCH v15 3/8] net/vmnet: implement shared mode (vmnet-shared)

2022-02-26 Thread Vladislav Yaroshchuk
Hi Akihiko, On Fri, Feb 25, 2022 at 8:46 PM Akihiko Odaki wrote: > On 2022/02/26 2:13, Vladislav Yaroshchuk wrote: > > Interaction with vmnet.framework in different modes > > differs only on configuration stage, so we can create > > common `send`, `receive`, etc. proc

Re: [PATCH v15 3/8] net/vmnet: implement shared mode (vmnet-shared)

2022-02-26 Thread Vladislav Yaroshchuk
On Sat, Feb 26, 2022 at 12:16 PM Akihiko Odaki wrote: > On 2022/02/26 17:37, Vladislav Yaroshchuk wrote: > > > > Hi Akihiko, > > > > On Fri, Feb 25, 2022 at 8:46 PM Akihiko Odaki > <mailto:akihiko.od...@gmail.com>> wrote: > > > >

Re: [PATCH v15 2/8] net/vmnet: add vmnet backends to qapi/net

2022-02-28 Thread Vladislav Yaroshchuk
On Mon, Feb 28, 2022 at 1:07 PM Markus Armbruster wrote: > Vladislav Yaroshchuk writes: > > > Create separate netdevs for each vmnet operating mode: > > - vmnet-host > > - vmnet-shared > > - vmnet-bridged > > > > Signed-off-by: Vladislav Yaroshchuk

Re: [PATCH v15 3/8] net/vmnet: implement shared mode (vmnet-shared)

2022-02-28 Thread Vladislav Yaroshchuk
On Sat, Feb 26, 2022 at 3:27 PM Akihiko Odaki wrote: > On Sat, Feb 26, 2022 at 8:33 PM Vladislav Yaroshchuk > wrote: > > > > > > > > On Sat, Feb 26, 2022 at 12:16 PM Akihiko Odaki > wrote: > >> > >> On 2022/02/26 17:37, Vladislav Yaroshchuk wr

Re: [PATCH v15 3/8] net/vmnet: implement shared mode (vmnet-shared)

2022-03-01 Thread Vladislav Yaroshchuk
On Tue, Mar 1, 2022 at 8:52 AM Akihiko Odaki wrote: > On 2022/02/28 20:59, Vladislav Yaroshchuk wrote: > > > > > > On Sat, Feb 26, 2022 at 3:27 PM Akihiko Odaki > <mailto:akihiko.od...@gmail.com>> wrote: > > > > On Sat,

Re: [PATCH v15 3/8] net/vmnet: implement shared mode (vmnet-shared)

2022-03-03 Thread Vladislav Yaroshchuk
On Tue, Mar 1, 2022 at 11:21 AM Akihiko Odaki wrote: > On 2022/03/01 17:09, Vladislav Yaroshchuk wrote: > > > Not sure that only one field is enough, cause > > > we may have two states on bh execution start: > > > 1. There are packets

Re: [PATCH v2 0/6] Add vmnet.framework based network backend

2021-09-28 Thread Vladislav Yaroshchuk
ping https://patchew.org/QEMU/20210831192720.33406-1-yaroshchuk2...@gmail.com/ вт, 31 авг. 2021 г. в 22:27, Vladislav Yaroshchuk : > macOS provides networking API for VMs called vmnet.framework. > I tried to add it as a network backend. All three modes are supported: > > -shared: &g

Re: [PATCH v13 2/7] net/vmnet: add vmnet backends to qapi/net

2022-01-28 Thread Vladislav Yaroshchuk
пт, 21 янв. 2022 г. в 16:03, Akihiko Odaki : > On Fri, Jan 21, 2022 at 9:19 PM Vladislav Yaroshchuk > wrote: > > > > > > чт, 20 янв. 2022 г. в 11:32, Roman Bolshakov : > >> > >> On Thu, Jan 13, 2022 at 08:22:14PM +0300, Vladislav Yaroshchuk wrote: >

Re: [PATCH v8 5/7] net/vmnet: implement bridged mode (vmnet-bridged)

2022-01-28 Thread Vladislav Yaroshchuk
e corresponding QEMU documentation section: https://wiki.qemu.org/Documentation/Networking#Network_Backends Currently you have: `-netdev vmnet-bridged,id=vmnet,ifname=en0` You need add a device: `-netdev vmnet-bridged,id=vmnet,ifname=en0 -device pcnet,netdev=vmnet` Supported devices can be listed with -device help: `qemu-system-xxx -device help` -- Best Regards, Vladislav Yaroshchuk

Re: [PATCH v13 2/7] net/vmnet: add vmnet backends to qapi/net

2022-01-15 Thread Vladislav Yaroshchuk
Hi Akihiko, Thank you for the review! I will fix the problems and resubmit as v14. --- Best regards, Vladislav Yaroshchuk пт, 14 янв. 2022 г. в 11:43, Akihiko Odaki : > Hi, > > Thank you for fixing the feature availability check. > > I decided to just check the series thoroughl

Re: [PATCH v13 2/7] net/vmnet: add vmnet backends to qapi/net

2022-01-18 Thread Vladislav Yaroshchuk
вт, 18 янв. 2022 г. в 18:01, Markus Armbruster : > Vladislav Yaroshchuk writes: > > > Create separate netdevs for each vmnet operating mode: > > - vmnet-host > > - vmnet-shared > > - vmnet-bridged > > > > Signed-off-by: Vladislav Yaroshchuk > >

Re: [PATCH v13 2/7] net/vmnet: add vmnet backends to qapi/net

2022-01-18 Thread Vladislav Yaroshchuk
вт, 18 янв. 2022 г. в 19:35, Markus Armbruster : > Vladislav Yaroshchuk writes: > > > вт, 18 янв. 2022 г. в 18:01, Markus Armbruster : > > > >> Vladislav Yaroshchuk writes: > >> > >> > Create separate netdevs for each vmnet operating

Re: [PATCH v13 1/7] net/vmnet: add vmnet dependency and customizable option

2022-01-21 Thread Vladislav Yaroshchuk
Hi Roman, чт, 20 янв. 2022 г. в 10:14, Roman Bolshakov : > On Thu, Jan 13, 2022 at 08:22:13PM +0300, Vladislav Yaroshchuk wrote: > > vmnet.framework dependency is added with 'vmnet' option > > to enable or disable it. Default value is 'auto'. > > > >

Re: [PATCH v13 2/7] net/vmnet: add vmnet backends to qapi/net

2022-01-21 Thread Vladislav Yaroshchuk
чт, 20 янв. 2022 г. в 11:32, Roman Bolshakov : > On Thu, Jan 13, 2022 at 08:22:14PM +0300, Vladislav Yaroshchuk wrote: > > Create separate netdevs for each vmnet operating mode: > > - vmnet-host > > - vmnet-shared > > - vmnet-bridged > > > > Sure I'm l

[PATCH v6] isa-applesmc: provide OSK forwarding on Apple hosts

2021-11-05 Thread Vladislav Yaroshchuk
personal, non-commercial use Guest macOS requires AppleSMC with correct OSK. The most legal way to pass it to the Guest is to forward the key from host SMC without any value exposion. Based on https://web.archive.org/web/20200103161737/osxbook.com/book/bonus/chapter7/tpmdrmmyth/ Signed-off-by: V

[PATCH v4 2/6] net/vmnet: add vmnet backends to qapi/net

2021-11-08 Thread Vladislav Yaroshchuk
Create separate netdevs for each vmnet operating mode: - vmnet-host - vmnet-shared - vmnet-bridged Signed-off-by: Vladislav Yaroshchuk --- net/clients.h | 11 net/meson.build | 7 +++ net/net.c | 10 net/vmnet-bridged.m | 25 + net/vmnet-common.m

[PATCH v4 4/6] net/vmnet: implement host mode (vmnet-host)

2021-11-08 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 99 +--- 1 file changed, 93 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 4a5ef99dc7..725675d0eb 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

[PATCH v4 6/6] net/vmnet: update qemu-options.hx

2021-11-08 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- qemu-options.hx | 23 +++ 1 file changed, 23 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index f051536b63..443cb9a64b 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2677,6 +2677,23 @@ DEF("netdev"

[PATCH v4 1/6] net/vmnet: add vmnet dependency and customizable option

2021-11-08 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- meson.build | 4 meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 3 files changed, 9 insertions(+) diff --git a/meson.build b/meson.build index 47df10afc2..5e163946d3 100644 --- a/meson.build +++ b

[PATCH v4 0/6] Add vmnet.framework based network backend

2021-11-08 Thread Vladislav Yaroshchuk
setting feature - Refactored sources a bit Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk Vladislav Yaroshchuk (6): net/vmnet: add vmnet dependency and customizable option net/vmnet: add vmnet backends to qapi/net net/vmnet: implement shared mode (vmnet-shared) net/vmn

[PATCH v4 5/6] net/vmnet: implement bridged mode (vmnet-bridged)

2021-11-08 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 98 ++--- 1 file changed, 92 insertions(+), 6 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 4e42a90391..3c9da9dc8b 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

[PATCH v4 3/6] net/vmnet: implement shared mode (vmnet-shared)

2021-11-08 Thread Vladislav Yaroshchuk
Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 305 + net/vmnet-shared.c | 69 +- net/vmnet_int.h| 23 3 files changed, 393 insertions(+), 4 deletions(-) diff --git a/net/vmnet-common.m b

[PATCH] isa-applesmc: provide OSK forwarding on Apple hosts

2021-10-21 Thread Vladislav Yaroshchuk
On Apple hosts we can read AppleSMC OSK directly from SMC and forward this value to QEMU Signed-off-by: Vladislav Yaroshchuk --- hw/misc/applesmc.c | 129 + 1 file changed, 129 insertions(+) diff --git a/hw/misc/applesmc.c b/hw/misc/applesmc.c index

[PATCH v2] isa-applesmc: provide OSK forwarding on Apple hosts

2021-10-22 Thread Vladislav Yaroshchuk
rward the key from host SMC without any value exposion. Based on http://osxbook.com/book/bonus/chapter7/tpmdrmmyth/ Signed-off-by: Vladislav Yaroshchuk --- hw/misc/applesmc.c | 144 - 1 file changed, 143 insertions(+), 1 deletion(-) diff --git a/hw

[PATCH v3] isa-applesmc: provide OSK forwarding on Apple hosts

2021-10-22 Thread Vladislav Yaroshchuk
rward the key from host SMC without any value exposion. Based on https://web.archive.org/web/20200103161737/osxbook.com/book/bonus/chapter7/tpmdrmmyth/ Signed-off-by: Vladislav Yaroshchuk --- hw/misc/applesmc.c | 147 - 1 file changed, 146 insertions(

Re: [PATCH v3] isa-applesmc: provide OSK forwarding on Apple hosts

2021-10-22 Thread Vladislav Yaroshchuk
Hi, Laurent! Thank you for your review! пт, 22 окт. 2021 г. в 14:36, Laurent Vivier : > Le 22/10/2021 à 13:10, Vladislav Yaroshchuk a écrit : > > On Apple hosts we can read AppleSMC OSK key directly from host's > > SMC and forward this value to QEMU Guest. > > &

[PATCH v4] isa-applesmc: provide OSK forwarding on Apple hosts

2021-10-22 Thread Vladislav Yaroshchuk
rward the key from host SMC without any value exposion. Based on https://web.archive.org/web/20200103161737/osxbook.com/book/bonus/chapter7/tpmdrmmyth/ Signed-off-by: Vladislav Yaroshchuk --- hw/misc/applesmc.c | 155 - 1 file changed, 154 insertions(

Re: [PATCH v4] isa-applesmc: provide OSK forwarding on Apple hosts

2021-10-25 Thread Vladislav Yaroshchuk
пн, 25 окт. 2021 г. в 13:13, Alexander Graf : > > On 22.10.21 18:14, Vladislav Yaroshchuk wrote: > > On Apple hosts we can read AppleSMC OSK key directly from host's > > SMC and forward this value to QEMU Guest. > > > > Usage: > > `-device isa-applesmc,hos

[PATCH v5] isa-applesmc: provide OSK forwarding on Apple hosts

2021-10-25 Thread Vladislav Yaroshchuk
rward the key from host SMC without any value exposion. Enable this feature by default on Apple devices Based on https://web.archive.org/web/20200103161737/osxbook.com/book/bonus/chapter7/tpmdrmmyth/ Signed-off-by: Vladislav Yaroshchuk --- hw/misc/applesmc.c

Re: [PATCH v5] isa-applesmc: provide OSK forwarding on Apple hosts

2021-10-25 Thread Vladislav Yaroshchuk
пн, 25 окт. 2021 г. в 17:56, Alexander Graf : > > On 25.10.21 16:21, Vladislav Yaroshchuk wrote: > > On Apple hosts we can read AppleSMC OSK key directly from host's > > SMC and forward this value to QEMU Guest. > > > > Usage: > > `-device isa-applesmc,o

[PATCH v9 1/7] net/vmnet: add vmnet dependency and customizable option

2022-01-07 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- meson.build | 4 meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 3 files changed, 9 insertions(+) diff --git a/meson.build b/meson.build index 53065e96ec..d2d396037a 100644 --- a/meson.build +++ b

[PATCH v9 3/7] net/vmnet: implement shared mode (vmnet-shared)

2022-01-07 Thread Vladislav Yaroshchuk
d unregistering event callback or simply drop packages just ignoring and not processing them when related flag is set. Here we do using the second way. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 310 + net

[PATCH v9 5/7] net/vmnet: implement bridged mode (vmnet-bridged)

2022-01-07 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 98 ++--- 1 file changed, 92 insertions(+), 6 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 4e42a90391..3c9da9dc8b 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

[PATCH v9 0/7] Add vmnet.framework based network backend

2022-01-07 Thread Vladislav Yaroshchuk
es - rename properties @dhcpstart and @dhcpend to @start-address and @end-address - improve qapi documentation about isolation features (@isolated, @net-uuid) v6 -> v7: - update MAINTAINERS list v7 -> v8 - QAPI code style fixes v8 -> v9 - Fix building on Linux: add missing qapi

[PATCH v9 4/7] net/vmnet: implement host mode (vmnet-host)

2022-01-07 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 93 1 file changed, 87 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 4a5ef99dc7..9c2e760ed1 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

[PATCH v9 2/7] net/vmnet: add vmnet backends to qapi/net

2022-01-07 Thread Vladislav Yaroshchuk
Create separate netdevs for each vmnet operating mode: - vmnet-host - vmnet-shared - vmnet-bridged Signed-off-by: Vladislav Yaroshchuk --- net/clients.h | 11 net/meson.build | 7 +++ net/net.c | 10 net/vmnet-bridged.m | 25 + net/vmnet-common.m

[PATCH v9 6/7] net/vmnet: update qemu-options.hx

2022-01-07 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- qemu-options.hx | 25 + 1 file changed, 25 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index ec90505d84..81dd34f550 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2732,6 +2732,25 @@ DEF("netdev"

[PATCH v9 7/7] net/vmnet: update MAINTAINERS list

2022-01-07 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f871d759fd..7184e41b8b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2633,6 +2633,11 @@ W: http://info.iet.unipi.it/~luigi/netmap/ S: Maintained F: net

Re: [PATCH v8 0/7] Add vmnet.framework based network backend

2022-01-07 Thread Vladislav Yaroshchuk
пт, 7 янв. 2022 г. в 08:03, Jason Wang : > > 在 2022/1/6 下午12:18, Jason Wang 写道: > > > > 在 2021/12/11 下午6:44, Vladislav Yaroshchuk 写道: > >> macOS provides networking API for VMs called 'vmnet.framework': > >> https://developer.apple.com/documentation

[PATCH v10 0/7] Add vmnet.framework based network backend

2022-01-11 Thread Vladislav Yaroshchuk
`'if': 'CONFIG_VMNET'` statement to Netdev union v9 -> v10 - Disable vmnet feature for macOS < 11.0: add vmnet.framework API probe into meson.build. This fixes QEMU building on macOS < 11.0: https://patchew.org/QEMU/20220110034000.20221-1-jasow...@redhat.

[PATCH v10 1/7] net/vmnet: add vmnet dependency and customizable option

2022-01-11 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. vmnet features to be used are available since macOS 11.0, corresponding probe is created into meson.build. Signed-off-by: Vladislav Yaroshchuk --- meson.build

[PATCH v10 2/7] net/vmnet: add vmnet backends to qapi/net

2022-01-11 Thread Vladislav Yaroshchuk
Create separate netdevs for each vmnet operating mode: - vmnet-host - vmnet-shared - vmnet-bridged Signed-off-by: Vladislav Yaroshchuk --- net/clients.h | 11 net/meson.build | 7 +++ net/net.c | 10 net/vmnet-bridged.m | 25 + net/vmnet-common.m

[PATCH v10 4/7] net/vmnet: implement host mode (vmnet-host)

2022-01-11 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 93 1 file changed, 87 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 4a5ef99dc7..9c2e760ed1 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

[PATCH v10 3/7] net/vmnet: implement shared mode (vmnet-shared)

2022-01-11 Thread Vladislav Yaroshchuk
d unregistering event callback or simply drop packages just ignoring and not processing them when related flag is set. Here we do using the second way. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 310 + net

[PATCH v10 5/7] net/vmnet: implement bridged mode (vmnet-bridged)

2022-01-11 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 98 ++--- 1 file changed, 92 insertions(+), 6 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 4e42a90391..3c9da9dc8b 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

[PATCH v10 7/7] net/vmnet: update MAINTAINERS list

2022-01-11 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c98a61caee..638d129305 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2641,6 +2641,11 @@ W: http://info.iet.unipi.it/~luigi/netmap/ S: Maintained F: net

[PATCH v10 6/7] net/vmnet: update qemu-options.hx

2022-01-11 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- qemu-options.hx | 25 + 1 file changed, 25 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index ec90505d84..81dd34f550 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2732,6 +2732,25 @@ DEF("netdev"

Re: [PULL 00/13] Net patches

2022-01-11 Thread Vladislav Yaroshchuk
re build step. Especially given that Apple supports ~three latest macOS versions, support for Catalina is expected to end in 2022, when QEMU releases 7.0. If this workaround is not suitable and it's required to support vmnet in Catalina 10.15 with a subset of available features, it can be done. But I'll be ready to handle this in approximately two-three weeks only. > Sure, Vladislav please fix this and send a new version. > > Quick fix as described above is available in v10: https://patchew.org/QEMU/20220111211422.21789-1-yaroshchuk2...@gmail.com/ > Thanks > > > > > -- PMM > > > > > -- Best Regards, Vladislav Yaroshchuk

Re: [PULL 00/13] Net patches

2022-01-11 Thread Vladislav Yaroshchuk
ср, 12 янв. 2022 г., 8:39 AM Jason Wang : > > 在 2022/1/12 上午6:02, Vladislav Yaroshchuk 写道: > > > > > > вт, 11 янв. 2022 г., 5:10 AM Jason Wang : > > > > On Tue, Jan 11, 2022 at 12:49 AM Peter Maydell > > wrote: > > > > >

[PATCH v11 3/7] net/vmnet: implement shared mode (vmnet-shared)

2022-01-12 Thread Vladislav Yaroshchuk
d unregistering event callback or simply drop packages just ignoring and not processing them when related flag is set. Here we do using the second way. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 312 + net

[PATCH v11 5/7] net/vmnet: implement bridged mode (vmnet-bridged)

2022-01-12 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 100 +--- 1 file changed, 94 insertions(+), 6 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 4e42a90391..19a68a6a1c 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

[PATCH v11 0/7] Add vmnet.framework based network backend

2022-01-12 Thread Vladislav Yaroshchuk
/ v10 -> v11 - Enable vmnet for macOS 10.15 with subset of available features. Disable vmnet for macOS < 10.15. - Fix typos Vladislav Yaroshchuk (7): net/vmnet: add vmnet dependency and customizable option net/vmnet: add vmnet backends to qapi/net net/vmnet: implement shared mode

[PATCH v11 7/7] net/vmnet: update MAINTAINERS list

2022-01-12 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c98a61caee..638d129305 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2641,6 +2641,11 @@ W: http://info.iet.unipi.it/~luigi/netmap/ S: Maintained F: net

[PATCH v11 4/7] net/vmnet: implement host mode (vmnet-host)

2022-01-12 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 96 +--- 1 file changed, 90 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 4a5ef99dc7..eee4daf74b 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

[PATCH v11 2/7] net/vmnet: add vmnet backends to qapi/net

2022-01-12 Thread Vladislav Yaroshchuk
Create separate netdevs for each vmnet operating mode: - vmnet-host - vmnet-shared - vmnet-bridged Signed-off-by: Vladislav Yaroshchuk --- net/clients.h | 11 net/meson.build | 7 +++ net/net.c | 10 net/vmnet-bridged.m | 25 net/vmnet-common.m | 20

Re: [PULL 00/13] Net patches

2022-01-12 Thread Vladislav Yaroshchuk
ср, 12 янв. 2022 г. в 10:51, Jason Wang : > On Wed, Jan 12, 2022 at 3:10 PM Roman Bolshakov wrote: > > > > On Wed, Jan 12, 2022 at 01:39:28PM +0800, Jason Wang wrote: > > > > > > 在 2022/1/12 上午6:02, Vladislav Yaroshchuk 写道: > > > > > >

[PATCH v11 1/7] net/vmnet: add vmnet dependency and customizable option

2022-01-12 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. vmnet features to be used are available since macOS 11.0, corresponding probe is created into meson.build. Signed-off-by: Vladislav Yaroshchuk --- meson.build

[PATCH v11 6/7] net/vmnet: update qemu-options.hx

2022-01-12 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- qemu-options.hx | 25 + 1 file changed, 25 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index ec90505d84..81dd34f550 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2732,6 +2732,25 @@ DEF("netdev"

Re: [PATCH v10 0/7] Add vmnet.framework based network backend

2022-01-12 Thread Vladislav Yaroshchuk
ср, 12 янв. 2022 г. в 11:22, Roman Bolshakov : > On Wed, Jan 12, 2022 at 10:50:04AM +0300, Roman Bolshakov wrote: > > On Wed, Jan 12, 2022 at 12:14:15AM +0300, Vladislav Yaroshchuk wrote: > > > macOS provides networking API for VMs called 'vmnet.framework': >

[PATCH v12 2/7] net/vmnet: add vmnet backends to qapi/net

2022-01-13 Thread Vladislav Yaroshchuk
Create separate netdevs for each vmnet operating mode: - vmnet-host - vmnet-shared - vmnet-bridged Signed-off-by: Vladislav Yaroshchuk --- net/clients.h | 11 net/meson.build | 7 +++ net/net.c | 10 net/vmnet-bridged.m | 25 + net/vmnet-common.m

[PATCH v12 0/7] Add vmnet.framework based network backend

2022-01-13 Thread Vladislav Yaroshchuk
/ v10 -> v11 - Enable vmnet for macOS 10.15 with subset of available features. Disable vmnet for macOS < 10.15. - Fix typos v11 -> v12 - use more general macOS version check with MAC_OS_VERSION_11_0 instead of manual definition creating. Vladislav Yaroshchuk (7): net/vmnet: add

[PATCH v12 1/7] net/vmnet: add vmnet dependency and customizable option

2022-01-13 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. vmnet features to be used are available since macOS 11.0, corresponding probe is created into meson.build. Signed-off-by: Vladislav Yaroshchuk --- meson.build

[PATCH v12 5/7] net/vmnet: implement bridged mode (vmnet-bridged)

2022-01-13 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 105 +--- 1 file changed, 100 insertions(+), 5 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 4e42a90391..f528af036c 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

[PATCH v12 4/7] net/vmnet: implement host mode (vmnet-host)

2022-01-13 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 110 --- 1 file changed, 104 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 4a5ef99dc7..90430dcb1a 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

[PATCH v12 3/7] net/vmnet: implement shared mode (vmnet-shared)

2022-01-13 Thread Vladislav Yaroshchuk
d unregistering event callback or simply drop packages just ignoring and not processing them when related flag is set. Here we do using the second way. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 313 + net

[PATCH v12 7/7] net/vmnet: update MAINTAINERS list

2022-01-13 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c98a61caee..638d129305 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2641,6 +2641,11 @@ W: http://info.iet.unipi.it/~luigi/netmap/ S: Maintained F: net

[PATCH v12 6/7] net/vmnet: update qemu-options.hx

2022-01-13 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- qemu-options.hx | 25 + 1 file changed, 25 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index ec90505d84..81dd34f550 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2732,6 +2732,25 @@ DEF("netdev"

  1   2   3   >