cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

virtio-rng.h (1198B)


      1/*
      2 * libqos driver framework
      3 *
      4 * Copyright (c) 2018 Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>
      5 *
      6 * This library is free software; you can redistribute it and/or
      7 * modify it under the terms of the GNU Lesser General Public
      8 * License version 2.1 as published by the Free Software Foundation.
      9 *
     10 * This library is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     13 * Lesser General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU Lesser General Public
     16 * License along with this library; if not, see <http://www.gnu.org/licenses/>
     17 */
     18
     19#ifndef TESTS_LIBQOS_VIRTIO_RNG_H
     20#define TESTS_LIBQOS_VIRTIO_RNG_H
     21
     22#include "qgraph.h"
     23#include "virtio.h"
     24#include "virtio-pci.h"
     25
     26typedef struct QVirtioRng QVirtioRng;
     27typedef struct QVirtioRngPCI QVirtioRngPCI;
     28typedef struct QVirtioRngDevice QVirtioRngDevice;
     29
     30struct QVirtioRng {
     31    QVirtioDevice *vdev;
     32};
     33
     34struct QVirtioRngPCI {
     35    QVirtioPCIDevice pci_vdev;
     36    QVirtioRng rng;
     37};
     38
     39struct QVirtioRngDevice {
     40    QOSGraphObject obj;
     41    QVirtioRng rng;
     42};
     43
     44#endif