All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Virtio based IEEE 802.11 device support
@ 2019-04-17 10:00 Ratnaraj Mirgal
  2019-04-18 12:16 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 2+ messages in thread
From: Ratnaraj Mirgal @ 2019-04-17 10:00 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]

Hi All,

At the outset, I do understand there is no mainstream requirement for
having virtual wireless NIC, if et all there is any, mac80211_hwsim (part
of Linux) is more than sufficient.

So this is purely an academic attempt.

In order to support following topology,

[image: qemu-wifi-topology.png]

I am implementing IEEE 802.11 softmac device based on virtio driver. I
wanted to use existing netdev trasport like socket, however due to lack of
better understanding of internals I have added new netdev (airport), which
is very similar to VDE transport implementation. On frontend side, I have
combined virtio-net and mac80211_hwsim to form frontend wireless driver.

As of now all driver are loading, and further working on correcting queue
implementation.

00:03.0 Network controller [0280]: Red Hat, Inc Device [1af4:100a]
	Subsystem: Red Hat, Inc Device [1af4:000a]
	Kernel driver in use: virtio-pci

# lsmod
Module                  Size  Used by    Tainted: G
arc4                   16384  2
virtio_mac80211        24576  0
mac80211              356352  1 virtio_mac80211
sha256_generic         24576  0
cfg80211              221184  1 mac80211

4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
    link/ether 52:55:00:d1:55:01 brd ff:ff:ff:ff:ff:ff


I have kept the repository at,
https://github.com/ra7narajm/virtio-mac80211

So if possible, do go through and let me know any mistakes.

Thank You.

-
Ratnaraj

[-- Attachment #2: qemu-wifi-topology.png --]
[-- Type: image/png, Size: 37118 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Virtio based IEEE 802.11 device support
  2019-04-17 10:00 [Qemu-devel] Virtio based IEEE 802.11 device support Ratnaraj Mirgal
@ 2019-04-18 12:16 ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-04-18 12:16 UTC (permalink / raw)
  To: Ratnaraj Mirgal, qemu-devel

On 4/17/19 12:00 PM, Ratnaraj Mirgal wrote:
> Hi All,
> 
> At the outset, I do understand there is no mainstream requirement for
> having virtual wireless NIC, if et all there is any, mac80211_hwsim (part
> of Linux) is more than sufficient.
> 
> So this is purely an academic attempt.
> 
> In order to support following topology,
> 
> [image: qemu-wifi-topology.png]

I never thought of sending a picture of an ASCII schema =)

> I am implementing IEEE 802.11 softmac device based on virtio driver. I
> wanted to use existing netdev trasport like socket, however due to lack of
> better understanding of internals I have added new netdev (airport), which
> is very similar to VDE transport implementation. On frontend side, I have
> combined virtio-net and mac80211_hwsim to form frontend wireless driver.
> 
> As of now all driver are loading, and further working on correcting queue
> implementation.
> 
> 00:03.0 Network controller [0280]: Red Hat, Inc Device [1af4:100a]
> 	Subsystem: Red Hat, Inc Device [1af4:000a]
> 	Kernel driver in use: virtio-pci
> 
> # lsmod
> Module                  Size  Used by    Tainted: G
> arc4                   16384  2
> virtio_mac80211        24576  0
> mac80211              356352  1 virtio_mac80211
> sha256_generic         24576  0
> cfg80211              221184  1 mac80211
> 
> 4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
> default qlen 1000
>     link/ether 52:55:00:d1:55:01 brd ff:ff:ff:ff:ff:ff
> 
> 
> I have kept the repository at,
> https://github.com/ra7narajm/virtio-mac80211
> 
> So if possible, do go through and let me know any mistakes.
> 
> Thank You.
> 
> -
> Ratnaraj
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-18 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-17 10:00 [Qemu-devel] Virtio based IEEE 802.11 device support Ratnaraj Mirgal
2019-04-18 12:16 ` Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.