Update file API

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>