Questions tagged [virtual-address-space]

virtual address space (VAS) or address space is the set of ranges of virtual addresses that an operating system makes available to a process

A virtual address does not represent the actual physical location of an object in memory; instead, the system maintains a page table for each process, which is an internal data structure used to translate virtual addresses into their corresponding physical addresses. Each time a thread references an address, the system translates the virtual address to a physical address.

A virtual address space (VAS) or address space is the set of ranges of virtual addresses that an operating system makes available to a process.[1] The range of virtual addresses usually starts at a low address and can extend to the highest address allowed by the computer's instruction set architecture. This provides several benefits, one of which is, if each process is given a separate address space, security through process isolation.

http://en.wikipedia.org/wiki/Virtual_address_space
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366912(v=vs.85).aspx

234 questions
1
vote
1 answer

Accessing the vm areas of a process

I am trying to write a LKM that have to read the vm areas address from a process. I am using pid_task() to get the pointer to the task_struct, but i getting compiling error when i try to use it to get the start address of the vmarea. struct…
1
vote
1 answer

Get pointer to memory for which I have the virtual address in a long type value

I have allocated a memory using a function call, which returned the 64bit Physical Address. I have mapped that address using a function call, which returned the 64bit Virtual Address. Now, I need a pointer to access this memory for which I have the…
RPM
  • 51
  • 1
  • 3
1
vote
2 answers

Manual Virtual Address Translation

I've looked at a few different articles related to this already but none of them explain the solution in a way that I can understand and replicate. I need to know how to translate a physical address to a virtual address in memory based on the…
user470074
1
vote
1 answer

virtual memory concepts

I am confused about some topics regarding virtual memory. So, i am going to pointwise list them and ask questions. While answering i will prefer if you also list some source where i can clear that doubt. I will be talking with reference to a linux…
1
vote
3 answers

Is it possible to run each thread in a separate virtual address space?

On Linux, is it possible to have threads of a process running on different virtual address spaces? If so, how?
pythonic
  • 20,589
  • 43
  • 136
  • 219
1
vote
1 answer

Finding Maximum Page Table Size

I have this problem for homework that I am having a hard time finding an answer for. Was wondering if anyone here could tell me if I am on the right track on my calculations or if I am way off. I am not looking for someone to GIVE me the answer. Any…
AJM
  • 57
  • 1
  • 7
1
vote
1 answer

Reasonable valid start address for mmap address hint so as to be gauranteed that things work

In one of our assignments we are required to build a distributed shared memory between 2 machines, I was using a paging based technique such that the base addresses are different on both the machines. But there is this linked list test case which…
subramanian
  • 1,005
  • 2
  • 11
  • 21
0
votes
1 answer

No Access Region (0x0 through 0xFFFF) within User Virtual Address Space

I was reading a book on Windows Internals and on a Chapter for Virtual Memory it mentioned that the first 64KB Address range is reserved as a No-Access region and the reason mentioned was to avoid incorrect pointer reference. Can someone explain to…
Abhijit
  • 62,056
  • 18
  • 131
  • 204
0
votes
0 answers

What are "Global Pages" for? (Intel x86 processors)

Disclaimer: this is a repost from superuser, due to a comment that the question might be more suitable for Stack Overflow. In Intel Software Developer's Manual (Intel 64 and IA-32 Architectures Software Developer's Manual, June 2023 edit version)…
WannabeArchitect
  • 1,058
  • 2
  • 11
  • 22
0
votes
0 answers

Multi-level page tables - calculating the number of levels

I had this question in an Operating system course test And Im couldn't figure out on how to solve it A system is given that uses paging, with a page size of 1MB. The length of the virtual address is 56 bits and each process receives the maximum…
0
votes
0 answers

How to exclude a range of virtual addresses that can be returned by malloc() in C?

Upon success, malloc() returns a pointer to a newly allocated memory. The pointer is a virtual address. By default, there is no control on what virtual address the malloc() returns. Is there a way to exclude a range of virtual addresses so that…
0
votes
0 answers

Move virtual memory area to specific address in userspace

I need to move the VMA corresponding to the address passed from the user space program to a destination address given from the user space. After a successful move, access to the previous virtual address range from the user space program should…
0
votes
0 answers

Relationship between Physical address, virtual address and system memory address in virtual environment

I would like to know the relation between Physical address, virtual address and system memory address in Virtual environment with PCIe device. It is best to give an example about these three addresses. Brief explanation about Physical address,…
洪書凱
  • 1
  • 1
0
votes
0 answers

Shall I use virtual addresses or physical address to access cache?

With a system that employs cache memory as well as virtual memory, a choice must be made whether to use virtual addresses to access the cache or to wait until each virtual address has been mapped to the corresponding physical address and then use…
Dan
  • 23
  • 3
0
votes
0 answers

If the register holding the logical Byte address of a program is the PROGRAM COUNTER then what is the register holding the actual physical address?

What is the general name of the register holding the physical address of a Byte of a program after the logical address is translated by the MMU ?