qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

virtiofsd: support nanosecond resolution for file timestamp

Define HAVE_STRUCT_STAT_ST_ATIM to 1 if `st_atim' is member of `struct
stat' which means support nanosecond resolution for the file timestamp
fields.

Signed-off-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

authored by

Jiufei Xue and committed by
Dr. David Alan Gilbert
8a792b03 771b01eb

+17
+16
configure
··· 5197 5197 strchrnul=yes 5198 5198 fi 5199 5199 5200 + ######################################### 5201 + # check if we have st_atim 5202 + 5203 + st_atim=no 5204 + cat > $TMPC << EOF 5205 + #include <sys/stat.h> 5206 + #include <stddef.h> 5207 + int main(void) { return offsetof(struct stat, st_atim); } 5208 + EOF 5209 + if compile_prog "" "" ; then 5210 + st_atim=yes 5211 + fi 5212 + 5200 5213 ########################################## 5201 5214 # check if trace backend exists 5202 5215 ··· 6894 6907 fi 6895 6908 if test "$strchrnul" = "yes" ; then 6896 6909 echo "HAVE_STRCHRNUL=y" >> $config_host_mak 6910 + fi 6911 + if test "$st_atim" = "yes" ; then 6912 + echo "HAVE_STRUCT_STAT_ST_ATIM=y" >> $config_host_mak 6897 6913 fi 6898 6914 if test "$byteswap_h" = "yes" ; then 6899 6915 echo "CONFIG_BYTESWAP_H=y" >> $config_host_mak
+1
tools/virtiofsd/fuse_misc.h
··· 7 7 */ 8 8 9 9 #include <pthread.h> 10 + #include "config-host.h" 10 11 11 12 /* 12 13 * Versioned symbols cannot be used in some cases because it