#include "config.h"
#include <errno.h>
#include <assert.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include "common.h"
#include "arch.h"
#include "arch_x86.h"
#include "arch_x86_64.h"
#include "target_api.h"
#include "target.h"
#include "target_arch_x86.h"
#include "target_os.h"
#include <xenctrl.h>
#include <xs.h>
#include "libvmi.h"
#include "target_xen_vm.h"
Go to the source code of this file.
|  | 
| int | xen_vm_mem_libvmi_init (struct target *target) | 
|  | 
| int | xen_vm_mem_libvmi_attach (struct target *target) | 
|  | 
| int | xen_vm_mem_libvmi_handle_exception_any (struct target *target) | 
|  | 
| int | xen_vm_mem_libvmi_handle_exception_ours (struct target *target) | 
|  | 
| int | xen_vm_mem_libvmi_handle_pause (struct target *target) | 
|  | 
| int | xen_vm_mem_libvmi_addr_v2p (struct target *target, tid_t tid, ADDR pgd, ADDR vaddr, ADDR *paddr) | 
|  | 
| unsigned char * | xen_vm_mem_libvmi_read_phys (struct target *target, ADDR paddr, unsigned long length, unsigned char *buf) | 
|  | 
| unsigned long | xen_vm_mem_libvmi_write_phys (struct target *target, ADDR paddr, unsigned long length, unsigned char *buf) | 
|  | 
| unsigned char * | xen_vm_mem_libvmi_read_tid (struct target *target, tid_t tid, ADDR pgd, ADDR addr, unsigned long target_length, unsigned char *buf) | 
|  | 
| unsigned long | xen_vm_mem_libvmi_write_tid (struct target *target, tid_t tid, ADDR pgd, ADDR addr, unsigned long length, unsigned char *buf) | 
|  | 
| int | xen_vm_mem_libvmi_fini (struct target *target) | 
|  | 
      
        
          | #define LIBVMI_CONFIG_TEMPLATE | 
      
 
Value:"{ostype=\"Linux\";" \
    " }"
 
 
      
        
          | #define LIBVMI_CONFIG_TEMPLATE_HVM   "{ ostype=\"Linux\"; sysmap=\"%s\"; }" | 
      
 
 
      
        
          | int xen_vm_mem_libvmi_attach | ( | struct target * | target | ) |  | 
      
 
 
      
        
          | int xen_vm_mem_libvmi_fini | ( | struct target * | target | ) |  | 
      
 
 
      
        
          | int xen_vm_mem_libvmi_handle_exception_any | ( | struct target * | target | ) |  | 
      
 
 
      
        
          | int xen_vm_mem_libvmi_handle_exception_ours | ( | struct target * | target | ) |  | 
      
 
 
      
        
          | int xen_vm_mem_libvmi_handle_pause | ( | struct target * | target | ) |  | 
      
 
 
      
        
          | int xen_vm_mem_libvmi_init | ( | struct target * | target | ) |  | 
      
 
 
      
        
          | unsigned char* xen_vm_mem_libvmi_read_phys | ( | struct target * | target, | 
        
          |  |  | ADDR | paddr, | 
        
          |  |  | unsigned long | length, | 
        
          |  |  | unsigned char * | buf | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | unsigned char* xen_vm_mem_libvmi_read_tid | ( | struct target * | target, | 
        
          |  |  | tid_t | tid, | 
        
          |  |  | ADDR | pgd, | 
        
          |  |  | ADDR | addr, | 
        
          |  |  | unsigned long | target_length, | 
        
          |  |  | unsigned char * | buf | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | unsigned long xen_vm_mem_libvmi_write_phys | ( | struct target * | target, | 
        
          |  |  | ADDR | paddr, | 
        
          |  |  | unsigned long | length, | 
        
          |  |  | unsigned char * | buf | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | unsigned long xen_vm_mem_libvmi_write_tid | ( | struct target * | target, | 
        
          |  |  | tid_t | tid, | 
        
          |  |  | ADDR | pgd, | 
        
          |  |  | ADDR | addr, | 
        
          |  |  | unsigned long | length, | 
        
          |  |  | unsigned char * | buf | 
        
          |  | ) |  |  | 
      
 
 
Initial value:= {
}
int xen_vm_mem_libvmi_addr_v2p(struct target *target, tid_t tid, ADDR pgd, ADDR vaddr, ADDR *paddr)
unsigned char * xen_vm_mem_libvmi_read_phys(struct target *target, ADDR paddr, unsigned long length, unsigned char *buf)
unsigned char * xen_vm_mem_libvmi_read_tid(struct target *target, tid_t tid, ADDR pgd, ADDR addr, unsigned long target_length, unsigned char *buf)
int xen_vm_mem_libvmi_attach(struct target *target)
int xen_vm_mem_libvmi_handle_exception_any(struct target *target)
int xen_vm_mem_libvmi_init(struct target *target)
unsigned long xen_vm_mem_libvmi_write_tid(struct target *target, tid_t tid, ADDR pgd, ADDR addr, unsigned long length, unsigned char *buf)
int xen_vm_mem_libvmi_fini(struct target *target)
int xen_vm_mem_libvmi_handle_exception_ours(struct target *target)
int xen_vm_mem_libvmi_handle_pause(struct target *target)
unsigned long xen_vm_mem_libvmi_write_phys(struct target *target, ADDR paddr, unsigned long length, unsigned char *buf)
Definition at line 407 of file target_xen_vm_mem_libvmi.c.