Trap secondary VM access to floating point state and phys timer.

Change-Id: I8bb5ef366fa58e50e7ab29f57c15b27ba0d6b7e5
diff --git a/src/vm.c b/src/vm.c
index cadda86..3c4fd4d 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1,5 +1,6 @@
 #include "vm.h"
 
+#include "api.h"
 #include "cpu.h"
 #include "std.h"
 
@@ -33,5 +34,6 @@
 
 void vm_set_current(struct vm *vm)
 {
+	arch_cpu_update(vm == &primary_vm);
 	arch_mm_set_vm(vm->ptable.id, (paddr_t)vm->ptable.table);
 }