gem5  v21.1.0.2
Public Member Functions | Protected Attributes | List of all members
gem5::VirtIO9PBase::FSQueue Class Reference

Virtqueue for 9p requests. More...

#include <fs9p.hh>

Inheritance diagram for gem5::VirtIO9PBase::FSQueue:
gem5::VirtQueue gem5::Serializable

Public Member Functions

 FSQueue (PortProxy &proxy, ByteOrder bo, uint16_t size, VirtIO9PBase &_parent)
virtual ~FSQueue ()
void onNotifyDescriptor (VirtDescriptor *desc)
 Notify queue of pending incoming descriptor. More...
std::string name () const
- Public Member Functions inherited from gem5::VirtQueue
virtual ~VirtQueue ()
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
void reset ()
 Reset cached state in this queue and in the associated ring buffers. More...
void setAddress (Addr address)
 Set the base address of this queue. More...
Addr getAddress () const
 Get the guest physical address of this queue. More...
uint16_t getSize () const
 Get the number of descriptors available in this queue. More...
VirtDescriptorgetDescriptor (VirtDescriptor::Index index)
 Get a pointer to a specific descriptor in the queue. More...
VirtDescriptorconsumeDescriptor ()
 Get an incoming descriptor chain from the queue. More...
void produceDescriptor (VirtDescriptor *desc, uint32_t len)
 Send a descriptor chain to the guest. More...
virtual void onNotify ()
 Notify queue of pending events. More...
void dump () const
 Dump the contents of a queue. More...
- Public Member Functions inherited from gem5::Serializable
 Serializable ()
virtual ~Serializable ()
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section. More...
void serializeSection (CheckpointOut &cp, const std::string &name) const
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object. More...
void unserializeSection (CheckpointIn &cp, const std::string &name)

Protected Attributes

- Protected Attributes inherited from gem5::VirtQueue
ByteOrder byteOrder
 Byte order in this queue. More...

Additional Inherited Members

- Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section. More...
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it. More...
- Static Public Attributes inherited from gem5::VirtQueue
static const Addr ALIGN_BITS = 12
 Page size used by VirtIO. It's hard-coded to 4096 bytes in the spec for historical reasons. More...
static const Addr ALIGN_SIZE = 1 << ALIGN_BITS
- Protected Member Functions inherited from gem5::VirtQueue
 VirtQueue (PortProxy &proxy, ByteOrder bo, uint16_t size)
 Instantiate a new virtqueue. More...

Detailed Description

Virtqueue for 9p requests.

Definition at line 151 of file fs9p.hh.

Constructor & Destructor Documentation

◆ FSQueue()

gem5::VirtIO9PBase::FSQueue::FSQueue ( PortProxy proxy,
ByteOrder  bo,
uint16_t  size,
VirtIO9PBase _parent 

Definition at line 154 of file fs9p.hh.

◆ ~FSQueue()

virtual gem5::VirtIO9PBase::FSQueue::~FSQueue ( )

Definition at line 157 of file fs9p.hh.

Member Function Documentation

◆ name()

std::string gem5::VirtIO9PBase::FSQueue::name ( ) const

Definition at line 161 of file fs9p.hh.

References gem5::Named::name(), and parent.

◆ onNotifyDescriptor()

void gem5::VirtIO9PBase::FSQueue::onNotifyDescriptor ( VirtDescriptor desc)

Notify queue of pending incoming descriptor.

This method is called by the default implementation of onNotify() to notify the device model of pending data in a descriptor chain.

Device models should normally overload one of onNotify() and onNotifyDescriptor().

Reimplemented from gem5::VirtQueue.

Definition at line 147 of file

References gem5::VirtDescriptor::chainRead(), data, DPRINTF, gem5::VirtIO9PBase::dumpMsg(), header, gem5::p9toh(), parent, gem5::VirtIO9PBase::pendingTransactions, gem5::VirtIO9PBase::recvTMsg(), and gem5::VirtDescriptor::size().

Member Data Documentation

◆ parent

VirtIO9PBase& gem5::VirtIO9PBase::FSQueue::parent

Definition at line 164 of file fs9p.hh.

Referenced by name(), and onNotifyDescriptor().

The documentation for this class was generated from the following files:

Generated on Tue Sep 21 2021 12:28:20 for gem5 by doxygen 1.8.17