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

proxy-memory-listener.h (703B)


      1/*
      2 * Copyright © 2018, 2021 Oracle and/or its affiliates.
      3 *
      4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
      5 * See the COPYING file in the top-level directory.
      6 *
      7 */
      8
      9#ifndef PROXY_MEMORY_LISTENER_H
     10#define PROXY_MEMORY_LISTENER_H
     11
     12#include "exec/memory.h"
     13#include "io/channel.h"
     14
     15typedef struct ProxyMemoryListener {
     16    MemoryListener listener;
     17
     18    int n_mr_sections;
     19    MemoryRegionSection *mr_sections;
     20
     21    QIOChannel *ioc;
     22} ProxyMemoryListener;
     23
     24void proxy_memory_listener_configure(ProxyMemoryListener *proxy_listener,
     25                                     QIOChannel *ioc);
     26void proxy_memory_listener_deconfigure(ProxyMemoryListener *proxy_listener);
     27
     28#endif