Signed-off-by: Andrea Bastoni <[email protected]>
---
hypervisor/arch/x86/paging.c | 2 +-
hypervisor/arch/x86/svm.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hypervisor/arch/x86/paging.c b/hypervisor/arch/x86/paging.c
index 9f846dc9..cb7ff929 100644
--- a/hypervisor/arch/x86/paging.c
+++ b/hypervisor/arch/x86/paging.c
@@ -41,7 +41,7 @@ static void x86_64_clear_entry(pt_entry_t pte)
static bool x86_64_page_table_empty(page_table_t page_table)
{
pt_entry_t pte;
- int n;
+ unsigned int n;
for (n = 0, pte = page_table; n < PAGE_SIZE / sizeof(u64); n++, pte++)
if (x86_64_entry_valid(pte, PAGE_FLAG_PRESENT))
diff --git a/hypervisor/arch/x86/svm.c b/hypervisor/arch/x86/svm.c
index 3c3e6854..9b1664a5 100644
--- a/hypervisor/arch/x86/svm.c
+++ b/hypervisor/arch/x86/svm.c
@@ -698,7 +698,7 @@ static bool svm_parse_mov_to_cr(struct vmcb *vmcb, unsigned
long pc,
struct parse_context ctx = {};
/* No prefixes are supported yet */
u8 opcodes[] = {0x0f, 0x22}, modrm;
- int n;
+ unsigned int n;
vcpu_get_guest_paging_structs(&pg_structs);
--
2.28.0
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/20201028210933.138379-17-andrea.bastoni%40tum.de.