mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/pv: make guest_io_{read,write} local functions
Signed-off-by: Wei Liu <wei.liu2@citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
29b0678b3c
commit
6f407dc4fc
2 files changed
+4
-9
No files matched your search
@@ -214,8 +214,8 @@ static bool pci_cfg_ok(struct domain *currd, unsigned int start,
|
||||
pci_conf_write_intercept(0, machine_bdf, start, size, write) >= 0;
|
||||
}
|
||||
|
||||
uint32_t guest_io_read(unsigned int port, unsigned int bytes,
|
||||
struct domain *currd)
|
||||
static uint32_t guest_io_read(unsigned int port, unsigned int bytes,
|
||||
struct domain *currd)
|
||||
{
|
||||
uint32_t data = 0;
|
||||
unsigned int shift = 0;
|
||||
@@ -343,8 +343,8 @@ static int read_io(unsigned int port, unsigned int bytes,
|
||||
return X86EMUL_OKAY;
|
||||
}
|
||||
|
||||
void guest_io_write(unsigned int port, unsigned int bytes, uint32_t data,
|
||||
struct domain *currd)
|
||||
static void guest_io_write(unsigned int port, unsigned int bytes,
|
||||
uint32_t data, struct domain *currd)
|
||||
{
|
||||
if ( admin_io_okay(port, bytes, currd) )
|
||||
{
|
||||
|
||||
@@ -21,11 +21,6 @@
|
||||
|
||||
void async_exception_cleanup(struct vcpu *);
|
||||
|
||||
uint32_t guest_io_read(unsigned int port, unsigned int bytes,
|
||||
struct domain *);
|
||||
void guest_io_write(unsigned int port, unsigned int bytes, uint32_t data,
|
||||
struct domain *);
|
||||
|
||||
const char *trapstr(unsigned int trapnr);
|
||||
|
||||
#endif /* ASM_TRAP_H */
|
||||
|
||||