x86: put x86emul_{read,write}_dr under CONFIG_PV
authorWei Liu <wei.liu2@citrix.com>
Mon, 5 Nov 2018 17:38:58 +0000 (17:38 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 6 Nov 2018 10:19:32 +0000 (10:19 +0000)
commita76e48f879dda43d5f7d36ecdb241678ff0c441e
treeb96eb532b4a199ce3e457d7e0208963206b25dc2
parent3beb42a090e34bad001bc030591a00eb1c33382e
x86: put x86emul_{read,write}_dr under CONFIG_PV

A build breakage is discovered by a non-debug build. Debug build
worked because the ASSERT made the compiler eliminate the rest of the
functions.

Currently they are PV only. There are comments alluding to possible
future HVM support but we can cross the bridge when we get there.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate.c