Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xcap
xcap-capability-linux
Commits
a6130165
Commit
a6130165
authored
Jun 25, 2014
by
Charlie Jacobsen
Committed by
Vikram Narayanan
Oct 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple unmapping code for ept in arch-dep code.
Just clears the ept entry.
parent
33d999d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
arch/x86/include/asm/lcd-domains-arch.h
arch/x86/include/asm/lcd-domains-arch.h
+9
-0
arch/x86/lcd-domains/lcd-domains-arch.c
arch/x86/lcd-domains/lcd-domains-arch.c
+7
-0
No files found.
arch/x86/include/asm/lcd-domains-arch.h
View file @
a6130165
...
...
@@ -172,6 +172,15 @@ void lcd_arch_ept_set(lcd_arch_epte_t *epte, u64 hpa);
* Read the host physical address stored in epte.
*/
u64
lcd_arch_ept_hpa
(
lcd_arch_epte_t
*
epte
);
/**
* Clears guest physical => host physical mapping in the ept.
*
* (This is not going to free up potentially empty paging structures
* higher up in the ept hierarchy; but, for now, unset is used when
* we're tearing down the lcd -- due to an error -- so the paging
* structures will be freed up when the ept is torn down.)
*/
int
lcd_arch_ept_unset
(
lcd_arch_epte_t
*
epte
)
/**
* Simple routine combining ept walk and set.
*
...
...
arch/x86/lcd-domains/lcd-domains-arch.c
View file @
a6130165
...
...
@@ -1010,6 +1010,11 @@ void lcd_arch_ept_set(lcd_arch_epte_t *epte, u64 hpa)
vmx_epte_set
(
epte
,
hpa
,
3
);
}
int
lcd_arch_ept_unset
(
lcd_arch_epte_t
*
epte
)
{
*
epte
=
0
;
}
u64
lcd_arch_ept_hpa
(
lcd_arch_epte_t
*
epte
)
{
return
vmx_epte_hpa
(
*
epte
);
...
...
@@ -2618,10 +2623,12 @@ EXPORT_SYMBOL(lcd_arch_destroy);
EXPORT_SYMBOL
(
lcd_arch_run
);
EXPORT_SYMBOL
(
lcd_arch_ept_walk
);
EXPORT_SYMBOL
(
lcd_arch_ept_set
);
EXPORT_SYMBOL
(
lcd_arch_ept_unset
);
EXPORT_SYMBOL
(
lcd_arch_ept_hpa
);
EXPORT_SYMBOL
(
lcd_arch_ept_map_gpa_to_hpa
);
EXPORT_SYMBOL
(
lcd_arch_ept_gpa_to_hpa
);
EXPORT_SYMBOL
(
lcd_arch_set_pc
);
EXPORT_SYMBOL
(
lcd_arch_set_gva_root
);
/* DEBUGGING -------------------------------------------------- */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment