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

2022-04-29 Thread Vladislav Yaroshchuk
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: Vladislav Yaroshchuk ---

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

2022-04-29 Thread Vladislav Yaroshchuk
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: Vladislav Yaroshchuk ---

Re: [PATCH v3] hw/misc: applesmc: use host osk as default on macs

2022-04-21 Thread Vladislav Yaroshchuk
Hi, Daniel! Ok, thank you - then I'll wait until compat machines for 7.1 are added (after release) and send a new patch. Regards, Vladislav вт, 19 апр. 2022 г. в 19:03, Daniel P. Berrangé : > On Sun, Apr 17, 2022 at 04:43:14PM +0300, Vladislav Yaroshchuk wrote: > > I've CCed all t

Re: [PATCH v3] hw/misc: applesmc: use host osk as default on macs

2022-04-17 Thread Vladislav Yaroshchuk
ine <= 7.0 - hostosk=off by default, the dummy OSK is used (as previously). BTW since my patches lost 7.0, I planned to wait until compat machines for 7.1 are added (after 7.0 release) and then rebase the patches, adding required changes into `hw/core/machine.c` Now we have two versions of host OSK

Re: [PATCH v3] hw/misc: applesmc: use host osk as default on macs

2022-04-16 Thread Vladislav Yaroshchuk
. The discussion has stopped, but if you're intended to see this feature working within QEMU - it'd be good to cc all the participans of previous threads :) Thanks, Vladislav Yaroshchuk

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

2022-03-17 Thread Vladislav Yaroshchuk
On Thu, Mar 17, 2022 at 6:40 PM Akihiko Odaki wrote: > On 2022/03/17 19:28, Vladislav Yaroshchuk wrote: > > Interaction with vmnet.framework in different modes > > differs only on configuration stage, so we can create > > common `send`, `receive`, etc. procedures and reuse

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

2022-03-17 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 5ce0ada75e..ea00d0eeb6 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2743,6 +2743,25 @@ DEF("netdev"

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

2022-03-17 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 8476277aa9..8f3d78f177 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1265,7 +1265,11 @@ ERST { .name

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

2022-03-17 Thread Vladislav Yaroshchuk
Interaction with vmnet.framework in different modes differs only on configuration stage, so we can create common `send`, `receive`, etc. procedures and reuse them. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 358

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

2022-03-17 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 137 ++-- 1 file changed, 132 insertions(+), 5 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 91c1a2f2c7..46d2282863 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

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

2022-03-17 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 116 --- 1 file changed, 110 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index a461d507c5..05f8d78864 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

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

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

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

2022-03-17 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. used vmnet features are available since macOS 11.0, but new backend can be built and work properly with subset of them on 10.15 too. Signed-off-by: Vladislav Yaroshchuk --- meson.build

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

2022-03-17 Thread Vladislav Yaroshchuk
> v19 - use positive pointers values to describe unsent packets window of VmnetState buffer v19 -> v20 - vmnet-host: minor but required refactor v20 -> v21 - vmnet-bridged: dynamically allocate valid ifnames list - QAPI schema: add `Markus Armbruster `'s acked-by v21 -> v22 - commo

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

2022-03-17 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 130 ++-- 1 file changed, 125 insertions(+), 5 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 91c1a2f2c7..6970c7d17b 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

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

2022-03-17 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 109 --- 1 file changed, 103 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index a461d507c5..e6d01fd65e 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

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

2022-03-17 Thread Vladislav Yaroshchuk
Interaction with vmnet.framework in different modes differs only on configuration stage, so we can create common `send`, `receive`, etc. procedures and reuse them. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 358

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

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

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

2022-03-17 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 5ce0ada75e..ea00d0eeb6 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2743,6 +2743,25 @@ DEF("netdev"

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

2022-03-17 Thread Vladislav Yaroshchuk
> v19 - use positive pointers values to describe unsent packets window of VmnetState buffer v19 -> v20 - vmnet-host: minor but required refactor v20 -> v21 - vmnet-bridged: dynamically allocate valid ifnames list - QAPI schema: add `Markus Armbruster `'s acked-by Vladislav Yaroshchu

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

2022-03-17 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 8476277aa9..8f3d78f177 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1265,7 +1265,11 @@ ERST { .name

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

2022-03-17 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. used vmnet features are available since macOS 11.0, but new backend can be built and work properly with subset of them on 10.15 too. Signed-off-by: Vladislav Yaroshchuk --- meson.build

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

2022-03-16 Thread Vladislav Yaroshchuk
On Wed, Mar 16, 2022 at 4:58 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 v19 4/7] net/vmnet: implement host mode (vmnet-host)

2022-03-15 Thread Vladislav Yaroshchuk
On Tue, Mar 15, 2022 at 11:37 PM Akihiko Odaki wrote: > On 2022/03/16 5:27, Vladislav Yaroshchuk wrote: > > Signed-off-by: Vladislav Yaroshchuk > > --- > > net/vmnet-host.c | 110 --- > > 1 file changed, 104

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

2022-03-15 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 128 ++-- 1 file changed, 123 insertions(+), 5 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 91c1a2f2c7..5936c87718 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

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

2022-03-15 Thread Vladislav Yaroshchuk
Interaction with vmnet.framework in different modes differs only on configuration stage, so we can create common `send`, `receive`, etc. procedures and reuse them. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 358

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

2022-03-15 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 v20 7/7] net/vmnet: update hmp-commands.hx

2022-03-15 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 8476277aa9..8f3d78f177 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1265,7 +1265,11 @@ ERST { .name

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

2022-03-15 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 5ce0ada75e..ea00d0eeb6 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2743,6 +2743,25 @@ DEF("netdev"

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

2022-03-15 Thread Vladislav Yaroshchuk
> v19 - use positive pointers values to describe unsent packets window of VmnetState buffer v19 -> v20 - vmnet-host: minor but required refactor Vladislav Yaroshchuk (7): net/vmnet: add vmnet dependency and customizable option net/vmnet: add vmnet backends to qapi/net net/vmnet:

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

2022-03-15 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 109 --- 1 file changed, 103 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index a461d507c5..e6d01fd65e 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

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

2022-03-15 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. used vmnet features are available since macOS 11.0, but new backend can be built and work properly with subset of them on 10.15 too. Signed-off-by: Vladislav Yaroshchuk --- meson.build

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

2022-03-15 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 8476277aa9..8f3d78f177 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1265,7 +1265,11 @@ ERST { .name

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

2022-03-15 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 128 ++-- 1 file changed, 123 insertions(+), 5 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 91c1a2f2c7..5936c87718 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

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

2022-03-15 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 v19 6/7] net/vmnet: update qemu-options.hx

2022-03-15 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 5ce0ada75e..ea00d0eeb6 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2743,6 +2743,25 @@ DEF("netdev"

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

2022-03-15 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 a461d507c5..8f7a638967 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

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

2022-03-15 Thread Vladislav Yaroshchuk
Interaction with vmnet.framework in different modes differs only on configuration stage, so we can create common `send`, `receive`, etc. procedures and reuse them. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 358

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

2022-03-15 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. used vmnet features are available since macOS 11.0, but new backend can be built and work properly with subset of them on 10.15 too. Signed-off-by: Vladislav Yaroshchuk --- meson.build

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

2022-03-15 Thread Vladislav Yaroshchuk
18 -> v19 - use positive pointers values to describe unsent packets window of VmnetState buffer Vladislav Yaroshchuk (7): net/vmnet: add vmnet dependency and customizable option net/vmnet: add vmnet backends to qapi/net net/vmnet: implement shared mode (vmnet-shared) net/vmnet: impleme

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

2022-03-15 Thread Vladislav Yaroshchuk
On Tue, Mar 15, 2022 at 11:07 PM Akihiko Odaki wrote: > On 2022/03/16 4:59, Vladislav Yaroshchuk wrote: > > Interaction with vmnet.framework in different modes > > differs only on configuration stage, so we can create > > common `send`, `receive`, etc. procedures and reuse

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

2022-03-15 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 128 ++-- 1 file changed, 123 insertions(+), 5 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 91c1a2f2c7..5936c87718 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

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

2022-03-15 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 a461d507c5..8f7a638967 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

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

2022-03-15 Thread Vladislav Yaroshchuk
Interaction with vmnet.framework in different modes differs only on configuration stage, so we can create common `send`, `receive`, etc. procedures and reuse them. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 368

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

2022-03-15 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 8476277aa9..8f3d78f177 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1265,7 +1265,11 @@ ERST { .name

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

2022-03-15 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 v18 6/7] net/vmnet: update qemu-options.hx

2022-03-15 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 5ce0ada75e..ea00d0eeb6 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2743,6 +2743,25 @@ DEF("netdev"

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

2022-03-15 Thread Vladislav Yaroshchuk
vmnet.framework dependency is added with 'vmnet' option to enable or disable it. Default value is 'auto'. used vmnet features are available since macOS 11.0, but new backend can be built and work properly with subset of them on 10.15 too. Signed-off-by: Vladislav Yaroshchuk --- meson.build

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

2022-03-15 Thread Vladislav Yaroshchuk
checks - restore dropped commit messaged from the previous series v17 -> v18 - use VmnetState struct for all three operation modes - drop send_enabled flag - do not unregister vmnet event callback on cleanup, let vmnet.framework do everything itself while interface description Vladisl

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

2022-03-15 Thread Vladislav Yaroshchuk
On Tue, Mar 15, 2022 at 8:54 PM Akihiko Odaki wrote: > On 2022/03/16 2:45, Vladislav Yaroshchuk wrote: > > > > > > On Tue, Mar 15, 2022 at 1:18 PM Akihiko Odaki > <mailto:akihiko.od...@gmail.com>> wrote: > > > > On 2022/03/15 19:02, Vladi

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

2022-03-15 Thread Vladislav Yaroshchuk
On Tue, Mar 15, 2022 at 1:18 PM Akihiko Odaki wrote: > On 2022/03/15 19:02, Vladislav Yaroshchuk wrote: > > Interaction with vmnet.framework in different modes > > differs only on configuration stage, so we can create > > common `send`, `receive`, etc. procedures and reuse

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

2022-03-15 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 5ce0ada75e..ea00d0eeb6 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2743,6 +2743,25 @@ DEF("netdev"

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

2022-03-15 Thread Vladislav Yaroshchuk
Interaction with vmnet.framework in different modes differs only on configuration stage, so we can create common `send`, `receive`, etc. procedures and reuse them. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 359

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

2022-03-15 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 8476277aa9..8f3d78f177 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1265,7 +1265,11 @@ ERST { .name

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

2022-03-15 Thread Vladislav Yaroshchuk
found. Because of this, MAINTAINERS list update is dropped v16 -> v17 - host: move network_uuid to local variable - common: refactor, add documentation - common/send (vmnet->qemu): read new packets after QEMU send_cb invoked - common/receive (qemu->vmnet): drop redundant vmnet sta

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

2022-03-15 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-bridged.m | 133 ++-- 1 file changed, 128 insertions(+), 5 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index c735901666..4e29546bf2 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet

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

2022-03-15 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 113 --- 1 file changed, 107 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 32dc437037..0395458d8d 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

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

2022-03-15 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 v17 1/7] net/vmnet: add vmnet dependency and customizable option

2022-03-15 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 | 16

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

2022-03-14 Thread Vladislav Yaroshchuk
вт, 15 мар. 2022 г., 2:06 AM Akihiko Odaki : > On 2022/03/15 8:02, Vladislav Yaroshchuk wrote: > > > > > > вт, 15 мар. 2022 г., 1:34 AM Akihiko Odaki > <mailto:akihiko.od...@gmail.com>>: > > > > On 2022/03/15 6:50, Vladislav Ya

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

2022-03-14 Thread Vladislav Yaroshchuk
вт, 15 мар. 2022 г., 1:34 AM Akihiko Odaki : > On 2022/03/15 6:50, Vladislav Yaroshchuk wrote: > > Thank you, Akihiko > > > > On Mon, Mar 14, 2022 at 10:46 PM Akihiko Odaki > <mailto:akihiko.od...@gmail.com>> wrote: > > > > O

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

2022-03-14 Thread Vladislav Yaroshchuk
Thank you, Akihiko On Mon, Mar 14, 2022 at 10:46 PM Akihiko Odaki wrote: > On 2022/03/15 4:15, Vladislav Yaroshchuk wrote: > > vmnet.framework supports iov, but writing more than > > one iov into vmnet interface fails with > > 'VMNET_INVALID_ARGUMENT'. Collecting provi

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

2022-03-14 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 8476277aa9..8f3d78f177 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1265,7 +1265,11 @@ ERST { .name

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

2022-03-14 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 v16 6/7] net/vmnet: update qemu-options.hx

2022-03-14 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 5ce0ada75e..ea00d0eeb6 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2743,6 +2743,25 @@ DEF("netdev"

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

2022-03-14 Thread Vladislav Yaroshchuk
Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-host.c | 116 --- 1 file changed, 110 insertions(+), 6 deletions(-) diff --git a/net/vmnet-host.c b/net/vmnet-host.c index 32dc437037..15a832701a 100644 --- a/net/vmnet-host.c +++ b/net/vmnet-host.c

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

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

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

2022-03-14 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 | 16

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

2022-03-14 Thread Vladislav Yaroshchuk
has suspended operations in Russia indefinitely due to all the awful things happened the last weeks. I may leave this company and loose the ability to work on vmnet support :( It will be perfect if someone can handle my unfinished work, if something required to fix/improve is found.

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

2022-03-14 Thread Vladislav Yaroshchuk
.receive() implemented only. Signed-off-by: Phillip Tennen Signed-off-by: Vladislav Yaroshchuk --- net/vmnet-common.m | 298 + net/vmnet-shared.c | 95 ++- net/vmnet_int.h| 41 ++- 3 files changed, 429 insertions(+), 5 deletions

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 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-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 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-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 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

[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

[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 | 16

[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 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 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 0/8] Add vmnet.framework based network backend

2022-02-25 Thread Vladislav Yaroshchuk
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 - restore --enable-vdi and --disable-vdi mistakenly dropped in previous ser

[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 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 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 3/8] net/vmnet: implement shared mode (vmnet-shared)

2022-02-25 Thread Vladislav Yaroshchuk
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| 39 +- 3 files changed, 430

[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 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 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 v14 0/8] Add vmnet.framework based network backend

2022-02-25 Thread Vladislav Yaroshchuk
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 Yaroshchuk (8): net/vmnet: add vmnet dependency and customizable option net

[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 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 | 16

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

2022-02-25 Thread Vladislav Yaroshchuk
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| 39 +- 3 files changed, 430

[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

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

2022-02-16 Thread Vladislav Yaroshchuk
ping https://patchew.org/QEMU/20220113152836.60398-1-yaroshchuk2...@gmail.com/ чт, 13 янв. 2022 г. в 18:28, Vladislav Yaroshchuk : > On Apple hosts we can read AppleSMC OSK key directly from host's > SMC and forward this value to QEMU Guest. > > New 'hostosk' property is added: >

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

2022-01-28 Thread Vladislav Yaroshchuk
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-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 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 late t

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'. > > > > vmnet features to

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

  1   2   3   >