Commit Graph
8 Commits
Author SHA1 Message Date
Yuri Benditovich 0f423bf5fe netkvm-prot: make state machine table explicitly static
Signed-off-by: Yuri Benditovich <[email protected]>
2023-07-02 12:57:58 +03:00
Yuri Benditovich 9e3e49a6be netkvm-prot: add INF uninstall to the uninstall procedure
Add scan for INF files and uninstall of the protocol's INF file.
Now the uninstall script is not needed, just "netkvmp u".

Signed-off-by: Yuri Benditovich <[email protected]>
2023-07-02 12:57:58 +03:00
Yuri Benditovich 88d3797583 netkvm-prot: add d(ump) command to the netkvmp
Signed-off-by: Yuri Benditovich <[email protected]>
2023-07-02 12:57:58 +03:00
Yuri Benditovich fd5ab060f4 netkvm-prot: install/uninstall protocol via netkvmp.exe
netkvmp i/u installs and uninstalls the protocol.
The goal is to avoid additional batch files.

Signed-off-by: Yuri Benditovich <[email protected]>
2023-07-02 12:57:58 +03:00
Yuri Benditovich 705aaea93d netkvm-prot: add protocol state machine
Add logic to the user-mode protocol service to replace and
extend the functionality of the notification object:
- install VIOPROT for all the network adapters
- disable all other protocols for relevant VF only when needed
- enable all the protocols on netkvm disable
- enable all the protocol on VIOPROT uninstall
- ... (see in the source code)

Signed-off-by: Yuri Benditovich <[email protected]>
2023-07-02 12:57:58 +03:00
Yuri Benditovich 289f2e4ae6 netkvm: handle protocol uninstallation
The netkvmp service on protocol uninstall is stopped
automatically (by INF statement). Upon stop the service
will run its own binary with command-line ' -x' that
directs the executable to run post-uninstall action:
1. Send WMI set 'NetKvm_Standby.value=0' to force all
   the instances that support standby feature to indicate
   link off (return to their initial behavior)
2. Send WMI query for 'NetKvm_Standby' and parse the response.
   Note friendly names of all the instances that support
   standby feature. Access these instances via SetupAPI and
   restart them.

Signed-off-by: Yuri Benditovich <[email protected]>
2021-04-01 15:11:46 +03:00
Yuri Benditovich f1723b6e40 netkvm: protocol service: add copyright text
Signed-off-by: Yuri Benditovich <[email protected]>
2020-07-09 15:23:33 +03:00
Yuri Benditovich aa303f9a86 netkvm: introduce dummy service project
This service binary will be used as an executable for the
installation of the protocol.

Signed-off-by: Yuri Benditovich <[email protected]>
2020-07-07 17:53:39 +03:00