Browse Source

Add qemu_module_dummy and qemu_stamp_xxx to qemu_driver.c

tags/v0.5.1
Vitaliy Filippov 2 months ago
parent
commit
a516fefa8c
2 changed files with 10 additions and 1 deletions
  1. +1
    -1
      Makefile
  2. +9
    -0
      qemu_driver.c

+ 1
- 1
Makefile View File

@@ -55,7 +55,7 @@ qemu_driver.o: qemu_driver.c qemu_proxy.h
-I qemu/include $(CXXFLAGS) -c -o $@ $<

qemu_driver.so: qemu_driver.o qemu_proxy.o $(FIO_CLUSTER_OBJS)
g++ $(CXXFLAGS) -ltcmalloc_minimal -shared -o $@ $< $(FIO_CLUSTER_OBJS) qemu_driver.o qemu_proxy.o -luring
g++ $(CXXFLAGS) -ltcmalloc_minimal -shared -o $@ $(FIO_CLUSTER_OBJS) qemu_driver.o qemu_proxy.o -luring

test_blockstore: ./libblockstore.so test_blockstore.cpp timerfd_interval.o
g++ $(CXXFLAGS) -o test_blockstore test_blockstore.cpp timerfd_interval.o ./libblockstore.so -ltcmalloc_minimal -luring


+ 9
- 0
qemu_driver.c View File

@@ -3,6 +3,7 @@

// QEMU block driver

#define BUILD_DSO
#define _GNU_SOURCE
#include "qemu/osdep.h"
#include "qemu/units.h"
@@ -19,6 +20,14 @@

#include "qemu_proxy.h"

void qemu_module_dummy(void)
{
}

void DSO_STAMP_FUN(void)
{
}

typedef struct VitastorClient
{
void *proxy;


Loading…
Cancel
Save