diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-11-03 13:37:20 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-11-03 13:37:20 +0000 |
commit | df30b395b73d3e24c2ae2646f5307dbc3f2c7987 (patch) | |
tree | b3a38a58c296f3308cc49da4c655feac2cf7eed8 /sys/dev/pv/hyperv.c | |
parent | 56ef583739e34156325d29db68d385fa93b01e7b (diff) |
Identify as an OSPlatformID 131 with a kernel version of 6
Diffstat (limited to 'sys/dev/pv/hyperv.c')
-rw-r--r-- | sys/dev/pv/hyperv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c index d3c439e5a1c..1ced9f893e1 100644 --- a/sys/dev/pv/hyperv.c +++ b/sys/dev/pv/hyperv.c @@ -80,7 +80,7 @@ struct hv_softc *hv_sc; int hv_match(struct device *, void *, void *); void hv_attach(struct device *, struct device *, void *); void hv_deferred(void *); -void hv_fake_version(struct hv_softc *); +void hv_set_version(struct hv_softc *); u_int hv_gettime(struct timecounter *); int hv_init_hypercall(struct hv_softc *); uint64_t hv_hypercall(struct hv_softc *, uint64_t, void *, void *); @@ -281,7 +281,7 @@ hv_attach(struct device *parent, struct device *self, void *aux) printf("\n"); - hv_fake_version(sc); + hv_set_version(sc); tc_init(&hv_timecounter); @@ -313,13 +313,13 @@ hv_deferred(void *arg) } void -hv_fake_version(struct hv_softc *sc) +hv_set_version(struct hv_softc *sc) { uint64_t ver; - /* FreeBSD 10 apparently */ - ver = 0x8200ULL << 48; - ver |= 10 << 16; + /* OpenBSD 6.0 */ + ver = 0x8300ULL << 48; + ver |= 6 << 16; wrmsr(MSR_HV_GUEST_OS_ID, ver); } |