X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fsvm_io.h;h=03ce5768dd370d2de7b4d40b07e81b9dae9abd46;hb=0ab69a6bdddef0ae09d8beb82b9c6c051e1a564d;hp=4d691b49e0f1c32aa0078898fde84cabd48e3768;hpb=9b4bfeefac09294a6f0ae12dbadf102eb547f5ec;p=palacios.git diff --git a/palacios/include/palacios/svm_io.h b/palacios/include/palacios/svm_io.h index 4d691b4..03ce576 100644 --- a/palacios/include/palacios/svm_io.h +++ b/palacios/include/palacios/svm_io.h @@ -28,20 +28,22 @@ struct svm_io_info { - uint_t type : 1 PACKED; // (0=out, 1=in) - uint_t rsvd : 1 PACKED; // Must be Zero - uint_t str : 1 PACKED; // string based io - uint_t rep : 1 PACKED; // repeated io - uint_t sz8 : 1 PACKED; // 8 bit op size - uint_t sz16 : 1 PACKED; // 16 bit op size - uint_t sz32 : 1 PACKED; // 32 bit op size - uint_t addr16 : 1 PACKED; // 16 bit addr - uint_t addr32 : 1 PACKED; // 32 bit addr - uint_t addr64 : 1 PACKED; // 64 bit addr - uint_t rsvd2 : 6 PACKED; // Should be Zero - ushort_t port PACKED; // port number -}; - + uint_t type : 1; // (0=out, 1=in) + uint_t rsvd : 1; // Must be Zero + uint_t str : 1; // string based io + uint_t rep : 1; // repeated io + uint_t sz8 : 1; // 8 bit op size + uint_t sz16 : 1; // 16 bit op size + uint_t sz32 : 1; // 32 bit op size + uint_t addr16 : 1; // 16 bit addr + uint_t addr32 : 1; // 32 bit addr + uint_t addr64 : 1; // 64 bit addr + uint_t rsvd2 : 6; // Should be Zero + uint16_t port; // port number +} __attribute__((packed)); + + +int v3_init_svm_io_map(struct guest_info * info); int v3_handle_svm_io_in(struct guest_info * info); int v3_handle_svm_io_ins(struct guest_info * info);