gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::VirtIOBlock::RequestQueue Class Reference

Virtqueue for disk requests. More...

#include <block.hh>

Inheritance diagram for gem5::VirtIOBlock::RequestQueue:
gem5::VirtQueue gem5::Serializable

Public Member Functions

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

Protected Attributes

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

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.
 
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it.
 
- 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.
 
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.
 

Detailed Description

Virtqueue for disk requests.

Definition at line 166 of file block.hh.

Constructor & Destructor Documentation

◆ RequestQueue()

gem5::VirtIOBlock::RequestQueue::RequestQueue ( PortProxy & proxy,
ByteOrder bo,
uint16_t size,
VirtIOBlock & _parent )
inline

Definition at line 170 of file block.hh.

◆ ~RequestQueue()

virtual gem5::VirtIOBlock::RequestQueue::~RequestQueue ( )
inlinevirtual

Definition at line 173 of file block.hh.

Member Function Documentation

◆ name()

std::string gem5::VirtIOBlock::RequestQueue::name ( ) const
inline

Definition at line 177 of file block.hh.

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

◆ onNotifyDescriptor()

void gem5::VirtIOBlock::RequestQueue::onNotifyDescriptor ( VirtDescriptor * desc)
virtual

Member Data Documentation

◆ parent

VirtIOBlock& gem5::VirtIOBlock::RequestQueue::parent
protected

Definition at line 180 of file block.hh.

Referenced by name(), and onNotifyDescriptor().


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

Generated on Tue Jun 18 2024 16:24:15 for gem5 by doxygen 1.11.0