Commit Graph
4 Commits
Author SHA1 Message Date
Yuri Benditovich c07b380014 netkvm: simplify init and cleanup of RSS parameters
Allocate RW lock in the constructor, if failed we will fail
the context initialization.
Free allocated CPU maps in the destructor, if allocated.
No need in "IsRSSinitialized" anymore.

Signed-off-by: Yuri Benditovich <[email protected]>
2020-08-26 17:19:23 +03:00
Pedro Justo (TEIXEIRA) cc40a4c918 Force NDIS SG DMA to use HAL v3 DMA APIs.
Signed-off-by: Pedro Justo <[email protected]>
2020-07-14 17:19:04 +03:00
Mohamed Mediouni 76ef17bf98 netkvm: Arm Windows support
NdisMAllocateSharedMemory maps memory as non cacheable on Arm Windows,
Given that Windows on Arm does not support unaligned accesses on uncached memory,
this behavior does result in crashes.

As such, use MmAllocateContiguousMemorySpecifyCache for the Arm64 architecture.
This choice is safe.

It's also to be noted that NdisMAllocateSharedMemory
ignores the isCached attribute anyway, and always
maps as cached on amd64.

This also allows us to remove the need for the Rx bounce buffer.

With this fix, networking w/ netkvm for Windows on Arm works fine.
(tested with QEMU emulator version 5.0.50 (v5.0.0-1065-g9f1f264edb))

Signed-off-by: Mohamed Mediouni <[email protected]>
2020-07-09 15:19:32 +03:00
Yuri Benditovich 954753b4d8 netkvm: renaming *-*.cpp to *_*.cpp
SDV is modern mode fails without any information if there
are source files with '-' sign in the name. This is
preparation change for further work with modern SDV.

Signed-off-by: Yuri Benditovich <[email protected]>
2020-05-09 23:48:03 +03:00