Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333889
b: refs/heads/master
c: 1a7bbda
h: refs/heads/master
i:
  333887: 0a959c9
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk committed Oct 12, 2012
1 parent ef66e01 commit 90b3258
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cd0608e71e9757f4dae35bcfb4e88f4d1a03a8ab
refs/heads/master: 1a7bbda5b1ab0e02622761305a32dc38735b90b2
16 changes: 15 additions & 1 deletion trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,16 @@ static void xen_write_cr4(unsigned long cr4)

native_write_cr4(cr4);
}

#ifdef CONFIG_X86_64
static inline unsigned long xen_read_cr8(void)
{
return 0;
}
static inline void xen_write_cr8(unsigned long val)
{
BUG_ON(val);
}
#endif
static int xen_write_msr_safe(unsigned int msr, unsigned low, unsigned high)
{
int ret;
Expand Down Expand Up @@ -1156,6 +1165,11 @@ static const struct pv_cpu_ops xen_cpu_ops __initconst = {
.read_cr4_safe = native_read_cr4_safe,
.write_cr4 = xen_write_cr4,

#ifdef CONFIG_X86_64
.read_cr8 = xen_read_cr8,
.write_cr8 = xen_write_cr8,
#endif

.wbinvd = native_wbinvd,

.read_msr = native_read_msr_safe,
Expand Down

0 comments on commit 90b3258

Please sign in to comment.