X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fapic.c;h=34ac432868fd2f75eaa96e4ae62a31cf21840e08;hb=cfcceed5890430afedcc544bd7dbb69e29dfd65a;hp=6fdce71bc0395216576ec846ddef3ab8e7541596;hpb=2201970a66ded078c9228c9e4053189a00f0a882;p=palacios.git diff --git a/palacios/src/devices/apic.c b/palacios/src/devices/apic.c index 6fdce71..34ac432 100644 --- a/palacios/src/devices/apic.c +++ b/palacios/src/devices/apic.c @@ -236,9 +236,8 @@ static void init_apic_state(struct apic_state * apic) { static int read_apic_msr(uint_t msr, v3_msr_t * dst, void * priv_data) { struct vm_device * dev = (struct vm_device *)priv_data; struct apic_state * apic = (struct apic_state *)dev->private_data; - PrintError("READING APIC BASE ADDR: HI=%x LO=%x\n", apic->base_addr_msr.hi, apic->base_addr_msr.lo); - - return -1; + dst->value = apic->base_addr; + return 0; }